Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 504
Default using macro from a different workbook

Hi, this is actually a question from a friend that I couldn't answer. She
works at a school with a proprietary program that does attendance. Several
times each day she exports a list to excel, but needs most of the columns
deleted and one added. I made her a macro to do this and it works fine. The
problem is, after the initial run, the workbook containing the macro is
minimized and she then exports another list, but the macro won't run again
unless she reopens the workbook containing the macro. She also said there is
no personal.xls listing when looking under macros. I'm thinking this may be
the problem. Is there a way we can call up the macro from the other workbook
in a convenient way? The other program opens a new instance of excel each
time you export a list, also...hope I explained correctly. Thanks for any
help, -Kevin
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default using macro from a different workbook

I do similar little programs to help some of my co-workers. What I do is
write a small program that will go and get an Excel file (list) and import it
into the HelperProgram, which then manipulates it however the user wants, and
saves it out to wherever they want by whatever filename (with datecode) they
want. Next time it can be simply run again with a new list, or can be
automated to run against a "list of lists".

Vaya con Dios,
Chuck, CABGx3



"Kevin" wrote:

Hi, this is actually a question from a friend that I couldn't answer. She
works at a school with a proprietary program that does attendance. Several
times each day she exports a list to excel, but needs most of the columns
deleted and one added. I made her a macro to do this and it works fine. The
problem is, after the initial run, the workbook containing the macro is
minimized and she then exports another list, but the macro won't run again
unless she reopens the workbook containing the macro. She also said there is
no personal.xls listing when looking under macros. I'm thinking this may be
the problem. Is there a way we can call up the macro from the other workbook
in a convenient way? The other program opens a new instance of excel each
time you export a list, also...hope I explained correctly. Thanks for any
help, -Kevin

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default using macro from a different workbook

Kevin,
The way I understand your explanation is that the propriety program opens a
new xls application rather then just an xls sheet.
One thing you can consider is defining how xls opens.
Under Tools, Options, General you can define a workbook to be opened every
single time that the xls application is called under "Alternate startup file
location". If you specify the file with the macro in that box, the macro file
is always opened when a new xls application is called.

Let me know if this helps

rdwj

"Kevin" wrote:

Hi, this is actually a question from a friend that I couldn't answer. She
works at a school with a proprietary program that does attendance. Several
times each day she exports a list to excel, but needs most of the columns
deleted and one added. I made her a macro to do this and it works fine. The
problem is, after the initial run, the workbook containing the macro is
minimized and she then exports another list, but the macro won't run again
unless she reopens the workbook containing the macro. She also said there is
no personal.xls listing when looking under macros. I'm thinking this may be
the problem. Is there a way we can call up the macro from the other workbook
in a convenient way? The other program opens a new instance of excel each
time you export a list, also...hope I explained correctly. Thanks for any
help, -Kevin

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 504
Default using macro from a different workbook

Hi, you're right..it does open the program each time an export happens. It
appears that after the export, if she opens the workbook with the macro
second, it works fine in the first workbook. Do you know if this would happen
if she used you're suggestion?

"rdwj" wrote:

Kevin,
The way I understand your explanation is that the propriety program opens a
new xls application rather then just an xls sheet.
One thing you can consider is defining how xls opens.
Under Tools, Options, General you can define a workbook to be opened every
single time that the xls application is called under "Alternate startup file
location". If you specify the file with the macro in that box, the macro file
is always opened when a new xls application is called.

Let me know if this helps

rdwj

"Kevin" wrote:

Hi, this is actually a question from a friend that I couldn't answer. She
works at a school with a proprietary program that does attendance. Several
times each day she exports a list to excel, but needs most of the columns
deleted and one added. I made her a macro to do this and it works fine. The
problem is, after the initial run, the workbook containing the macro is
minimized and she then exports another list, but the macro won't run again
unless she reopens the workbook containing the macro. She also said there is
no personal.xls listing when looking under macros. I'm thinking this may be
the problem. Is there a way we can call up the macro from the other workbook
in a convenient way? The other program opens a new instance of excel each
time you export a list, also...hope I explained correctly. Thanks for any
help, -Kevin

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default using macro from a different workbook

I like to either add an option to one of the toolbars or even create a dedicated
toolbar that would allow the user easy access to the macro.

For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)

And if you use xl2007:

If you want to learn about modifying the ribbon, you can start at Ron de Bruin's
site:
http://www.rondebruin.nl
or
http://www.rondebruin.nl/ribbon.htm

Kevin wrote:

Hi, this is actually a question from a friend that I couldn't answer. She
works at a school with a proprietary program that does attendance. Several
times each day she exports a list to excel, but needs most of the columns
deleted and one added. I made her a macro to do this and it works fine. The
problem is, after the initial run, the workbook containing the macro is
minimized and she then exports another list, but the macro won't run again
unless she reopens the workbook containing the macro. She also said there is
no personal.xls listing when looking under macros. I'm thinking this may be
the problem. Is there a way we can call up the macro from the other workbook
in a convenient way? The other program opens a new instance of excel each
time you export a list, also...hope I explained correctly. Thanks for any
help, -Kevin


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default using macro from a different workbook

yes - should do.
rdwj

"Kevin" wrote:

Hi, you're right..it does open the program each time an export happens. It
appears that after the export, if she opens the workbook with the macro
second, it works fine in the first workbook. Do you know if this would happen
if she used you're suggestion?

"rdwj" wrote:

Kevin,
The way I understand your explanation is that the propriety program opens a
new xls application rather then just an xls sheet.
One thing you can consider is defining how xls opens.
Under Tools, Options, General you can define a workbook to be opened every
single time that the xls application is called under "Alternate startup file
location". If you specify the file with the macro in that box, the macro file
is always opened when a new xls application is called.

Let me know if this helps

rdwj

"Kevin" wrote:

Hi, this is actually a question from a friend that I couldn't answer. She
works at a school with a proprietary program that does attendance. Several
times each day she exports a list to excel, but needs most of the columns
deleted and one added. I made her a macro to do this and it works fine. The
problem is, after the initial run, the workbook containing the macro is
minimized and she then exports another list, but the macro won't run again
unless she reopens the workbook containing the macro. She also said there is
no personal.xls listing when looking under macros. I'm thinking this may be
the problem. Is there a way we can call up the macro from the other workbook
in a convenient way? The other program opens a new instance of excel each
time you export a list, also...hope I explained correctly. Thanks for any
help, -Kevin

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 273
Default using macro from a different workbook

When creating the Macro there is a drop box names "Store macro in:" - choose
Personal Macro Workbook

This will create personal.xls and the macro will be available no matter what
workbook is opened. This would have to be done on any machine that needs the
macro.

hth

"Kevin" wrote:

Hi, this is actually a question from a friend that I couldn't answer. She
works at a school with a proprietary program that does attendance. Several
times each day she exports a list to excel, but needs most of the columns
deleted and one added. I made her a macro to do this and it works fine. The
problem is, after the initial run, the workbook containing the macro is
minimized and she then exports another list, but the macro won't run again
unless she reopens the workbook containing the macro. She also said there is
no personal.xls listing when looking under macros. I'm thinking this may be
the problem. Is there a way we can call up the macro from the other workbook
in a convenient way? The other program opens a new instance of excel each
time you export a list, also...hope I explained correctly. Thanks for any
help, -Kevin

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
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
Runing a macro in a workbook from another macro in other workbook dhatul Excel Discussion (Misc queries) 0 January 13th 06 06:27 AM
Help:Running a macro in one excel workbook from another workbook R Kapoor Setting up and Configuration of Excel 3 January 13th 06 05:11 AM
how do i mail a macro in my personnel macro workbook leo Excel Discussion (Misc queries) 5 December 23rd 05 04:02 PM
Issuing macro in workbook from separate workbook Nigel Excel Discussion (Misc queries) 1 May 16th 05 05:46 PM


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

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"