Copy worksheet from personal.xlsb to the active sheet

DENWARD

Board Regular
Joined
Oct 29, 2012
Messages
113
My goal is to copy a lookup table that I maintain in Personal.xlsb and paste it into whatever worksheet that is currently open on the desktop. The destination filename constantly changes (currently TESTERPASTE.XLSX) so I want it to paste it on whatever worksheet is currently open on my desktop. Is that possible ??

My humble attempt gives me an error message on line 2. Text entered is not a valid reference or defined name

Sub testerpastermacro()
'
' testerpastermacro Macro
'
'
Windows("PERSONAL.XLSB").Visible = True
Application.Goto Reference:="ENTIRELOOKUPTABLE"
Selection.Copy
Windows("TESTERPASTE.xlsx").Activate
Range("A1").Select
ActiveSheet.Paste

End Sub
 
For me copying a sheet also copies names. I don't know why that doesn't happen for you. Are you sure that you copied the sheet not the cells?
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
nope, it still doesnt copy the range names. Is there a type of copy command that gets all of the sheet details ???
 
Upvote 0

Forum statistics

Threads
1,215,111
Messages
6,123,159
Members
449,098
Latest member
Doanvanhieu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top