PC Review


Reply
Thread Tools Rate Thread

running a macro ina workbook that doesnt have that macro

 
 
Paul
Guest
Posts: n/a
 
      17th Feb 2004
I have written a macro that transfers data from one
workbook to other workbooks.I want to use this macro on
older workbooks that dont actually have the module.When i
try to use a toolbar button it opens the workbook that
does have the macro so upsetting the windows that i want
open to transfer the data.Is there a way?.I cant simply
call the workbooks by name because each workbook has a
unique number as a name.
 
Reply With Quote
 
 
 
 
Robin Hammond
Guest
Posts: n/a
 
      17th Feb 2004
Paul,

If you put the macro in a file called personal.xls and save it in your
xlstart folder (C:\Program Files\Microsoft Office\Office10\XLStart) then

1. personal.xls will open as a hidden file each time you start excel
2. the macro will be generally available and the windows won't change.

Alternatively, you could save the file containing the macro as an add-in
(which never shows a window).

Robin Hammond
www.enhanceddatasystems.com

"Paul" <(E-Mail Removed)> wrote in message
news:10d3201c3f516$38558440$(E-Mail Removed)...
> I have written a macro that transfers data from one
> workbook to other workbooks.I want to use this macro on
> older workbooks that dont actually have the module.When i
> try to use a toolbar button it opens the workbook that
> does have the macro so upsetting the windows that i want
> open to transfer the data.Is there a way?.I cant simply
> call the workbooks by name because each workbook has a
> unique number as a name.



 
Reply With Quote
 
 
 
 
paul
Guest
Posts: n/a
 
      18th Feb 2004
Robin when i save a xl file called personal in the folder
described below then excel starts with that file opened in
a maximised window even tho in the tools/options/general
the default file location is my documents.Could it be
related to the fact that we are on a network and we each
have our own settings????

>-----Original Message-----
>Paul,
>
>If you put the macro in a file called personal.xls and

save it in your
>xlstart folder (C:\Program Files\Microsoft Office\Office10

\XLStart) then
>
>1. personal.xls will open as a hidden file each time you

start excel
>2. the macro will be generally available and the windows

won't change.
>
>Alternatively, you could save the file containing the

macro as an add-in
>(which never shows a window).
>
>Robin Hammond
>www.enhanceddatasystems.com
>
>"Paul" <(E-Mail Removed)> wrote in message
>news:10d3201c3f516$38558440$(E-Mail Removed)...
>> I have written a macro that transfers data from one
>> workbook to other workbooks.I want to use this macro on
>> older workbooks that dont actually have the module.When

i
>> try to use a toolbar button it opens the workbook that
>> does have the macro so upsetting the windows that i want
>> open to transfer the data.Is there a way?.I cant simply
>> call the workbooks by name because each workbook has a
>> unique number as a name.

>
>
>.
>

 
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
Select sheets ina workbook based on radio buttons and move them Larry Fitch Microsoft Excel Worksheet Functions 4 28th Sep 2009 01:42 AM
Taking data from other workbook ina macro Pawan Microsoft Excel Programming 2 6th Sep 2008 05:16 PM
Running a macro to protect a workbook on a already protected workbook UNprotects the workbook ?? WimR Microsoft Excel Programming 9 25th Jul 2005 12:44 PM
printing ranges ina macro cindy Microsoft Excel Programming 1 21st Jul 2004 08:03 PM
Hyperlinking a specific worksheet ina workbook toot033 Microsoft Excel Worksheet Functions 1 15th Mar 2004 07:51 PM


Features
 

Advertising
 

Newsgroups
 


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