PC Review


Reply
Thread Tools Rate Thread

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

 
 
sbweid
Guest
Posts: n/a
 
      17th Mar 2008
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!
--
Steve
 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      17th Mar 2008
Various ways which depends on how you are calling the macro code,

try ThisWorkbook

or post code

--

Regards,
Nigel
(E-Mail Removed)



"sbweid" <(E-Mail Removed)> wrote in message
news:7E2E6D37-EBDF-44B1-8F44-(E-Mail Removed)...
>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!
> --
> Steve


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference macro in another workbook samuel Microsoft Excel Misc 1 9th Oct 2008 06:26 PM
Macro problem where workbook name is saved in another name and macro reference changes BobR Microsoft Excel Programming 1 22nd Mar 2008 02:44 AM
Create Move Macro for Closed Workbook Roger Microsoft Excel Misc 2 15th Jan 2008 01:08 AM
Create a reference to a workbook which is already open a.yearsley@gmail.com Microsoft Excel Programming 9 19th Apr 2007 11:21 PM
How to create an array reference that won't move John Microsoft Excel Discussion 2 30th Apr 2004 05:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:12 AM.