Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Create new workbook and move the Macro without reference to old wb

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sbweid - 17 Mar 2008 17:54 GMT
I have a "model" workbook that I use to create a new workbook for each member
in an organization.  The Model workbook has one macro that is used to
validate the input data that the members will compile.  However, the macro
points to the original macro using a "D:\...." reference instead of just a
reference to "ValidateData" in the new workbook.  How can I make sure that
the reference to the macro in the copied workbook just points to the
"ValidateData" macro in the newly created workbook and not the macro in the
original workbook?

Thanks for the help!
Signature

Steve

Nigel - 17 Mar 2008 18:15 GMT
Various ways which depends on how you are calling the macro code,

try  ThisWorkbook

or post code

Signature

Regards,
Nigel
nigelnospam@9sw.co.uk

>I have a "model" workbook that I use to create a new workbook for each
>member
[quoted text clipped - 8 lines]
>
> Thanks for the help!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.