Hoi,
I'm using Excell 2003.
I'd made a worksheet with on it a couple of buttons created by the
menu-option view -> toolbars -> forms -> button and then linked to the
module which is written in the VBA screen of the sheet known as
"microsoft excel objects" -> Sheet1(template).
When I copy the sheet as written before (select sheettab -> left mouse
button -> create copy -> To new book) then the complete sheet
inclusive the buttons are copied to a new file. This works oke. In
this new file also the VBA code is copied with it. So this is also
oke.
But,... the buttons refers not to the VBA code in this new workbook,
but refers to the VBA code in the original file. Now you have a "link"
as you can see by menu-option Edit -> Links.
Now it is possible to solve the problem by hand:
or- 1) relink the buttons to the correct VBA code in this new file
(select the button -> left mousebutton -> assign macro -> select the
code within this copied workbook).
or- 2) save this new workbook, don't close it, and then go to menu-
option edit -> links -> change source and select this file.
My wish is to get a solution automatic. I wish to copy the worksheet
into a new workbook, save the file as mentioned before: "Template-date-
time.xls" (date and time as actual). and fulfill the menu-option edit
-> links -> change source and select this file.
hopely somebody can give me the solution.
regards,
|