Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default running a macro ina workbook that doesnt have that macro

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default running a macro ina workbook that doesnt have that macro

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" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default running a macro ina workbook that doesnt have that macro

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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
running macro when workbook is openned MD Excel Discussion (Misc queries) 3 May 27th 10 09:42 PM
running macro in entire workbook Paul_of_Abingdon[_2_] Excel Discussion (Misc queries) 7 March 28th 08 08:36 PM
Macro Created but Not Running in Workbook alexaed Excel Worksheet Functions 9 August 14th 07 08:48 PM
Running macro in another workbook Barb Reinhardt Excel Worksheet Functions 1 April 25th 07 08:30 PM
Running Same macro in 250 Worksheets in Same Workbook halem2 Excel Worksheet Functions 3 March 24th 06 08:51 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"