[Solved] Copy two sheets data to new spreadsheet
-
Lovepreet323
- Posts: 29
- Joined: Fri Jun 17, 2022 9:45 am
[Solved] Copy two sheets data to new spreadsheet
How to copy two worksheets data to a new blank workbook using macro
Last edited by MrProgrammer on Thu Dec 04, 2025 5:13 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved]
Reason: Tagged ✓ [Solved]
OpenOffice 4.0 on Windows 10
Re: Copy two sheets data to new blank workbook using macro
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
- MrProgrammer
- Moderator
- Posts: 5373
- Joined: Fri Jun 04, 2010 7:57 pm
- Location: Wisconsin, USA
Re: Copy two sheets data to new blank workbook using macro
It's going to be difficult to save any time with a damned macro because the Edit → Sheet → Move/Copy dialog makes this so easy. You can select two sheets and copy them to a new document in about 15 seconds. And it might take you 10 seconds to start the Run Macro dialog and navigate to the right one. So you gain 5 seconds?
But if you really want one, just record a macro which executes those steps:
• Edit → Sheet → Select → select your two sheets → OK
• Edit → Sheet → Move/Copy → To document → New document → ✓ Copy → OK
• Stop Recording.
If you want to be able to choose which sheets are copied, omit that step from the recording. I decline to help further with this macro nonsense.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).