What am I doing wrong?
Thank you,
What am I doing wrong?
Thank you,
Hi, Bill Allen,
kind of hard to tell if you don´t post the code and the extensions of the workbooks involved.
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
Hi, Bill Allen,
please have a look at Forum Rule #3 and add code-tags to your procedure. I´d expected that code to be located in a standrad module, not behind a worksheet.
Ciao,
Holger
Are you saying that some worksheets containing macros can be inserted into other workbooks but some cannot due to the specific coding of the macro?
Hi, Bill Allen,
what I wanted to say: you posted the macro that gets lost according to you but not the way you copy (via Macro or by hand) nor the extensions of the files concerned.
Ciao,
Holger
Right. When I insert the worksheet containing the macro into a workbook that I'm building (from templates in my library), I get an error message that reads:
macro.jpg
Right. I try to insert the worksheet with the macro into another workbook and I get this error message:
macro.jpg
Hi, Bill Allen,
open the basic workbook, press ALT+F11 to enter the VBE, expand to see all objects in the Project Browser, double click on the sheet you want to copy and look into the code window: any macro being presented there? I can´t see it from my pc or in my crystal marble.
Ciao,
Holger
Perhaps this is where we are having a communication problem. When I say "copy" a worksheet into another workbook, the way I do this is to have the main workbook open and, when I want to insert the worksheet with the macro in it (or any other of my worksheets from my library), I right mouse click the sheet tab and then select Insert from the pop out menu. At that point, I insert the worksheet with the macro in it into the main workbook. When I do that, the worksheet comes in but the macro cannot be found. Using your test method, I have verified that the macro did not come with the spreadsheet.
Hi, Bill Allen,
the basic workbook is not the workbook you want to copy to but the one you copy from.
Ciao,
Holger
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks