Bug 149377 - VBA Calc does not paste, pastes only empty cells
Summary: VBA Calc does not paste, pastes only empty cells
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-30 11:20 UTC by ofthecentury
Modified: 2023-01-09 03:21 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ofthecentury 2022-05-30 11:20:36 UTC
Description:
Main spreadsheet has Excel VBA code that opens new Calc window importing a csv delimited with semicolon, then copies several rows, then pastes it into the main spreadsheet. Rows do get selected, the paste area in the main sheet gets grey cells where the pasted data should go into, none of the actual data. The copy operation code is RangeSourceSheet.Copy RangeDestinationSheet


Steps to Reproduce:
Main spreadsheet has Excel VBA code that opens new Calc window importing a csv delimited with semicolon, then copies several rows, then pastes it into the main spreadsheet. After little research, rows do contain data and do get selected, the paste area in the main sheet gets grey cells where the pasted data should go into, none of the actual data. The copy operation code is RangeSourceSheet.Copy RangeDestinationSheet

Actual Results:
No data is pasted in the destination range

Expected Results:
Data should be pasted in destination range


Reproducible: Always


User Profile Reset: No



Additional Info:
Might be able to provide more data if no one can reproduce this.
Comment 1 Andreas Heinisch 2022-05-31 12:48:33 UTC
May you add a sample document in order to reproduce the error?
Comment 2 ofthecentury 2022-05-31 18:11:29 UTC
Ah, I just created the showcase spreadsheets with the macro and it didn't save the macro. 

What this boils down to is that when you do the copy paste this way:
Workbooks("someworkbook").Rows(5:10).Copy 
Worksbooks("destinationwb").Rows(20)
it doesn't copy from another workbook. 

It does paste whatever was in clipboard. It does select the cells in another workbook. But it doesn't copy from another workbook that's referenced in code this way. [This works in Excel VBA]. Perhaps the bug title should be updated to "doesn't copy rows from another workbook?"
Comment 3 raal 2022-06-11 05:00:41 UTC
Hello,

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F
Thank you
Comment 4 QA Administrators 2022-12-09 03:24:06 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2023-01-09 03:21:10 UTC
Dear ofthecentury,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp