Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 324
Default how to maintain settings when calling a second macro

I have several macros that need to be run in progression. Combining them
would make for too long macros. The problem is that when the second macro is
called, all memory is lost (wbk1 = "xxxxxxx.xls") etc. Is there a global
declaration that can be made for each macro in the progression to keep the
assignments?

Thanks,

Jim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default how to maintain settings when calling a second macro

declare the macro in a general module at the top outside of any procedure

Public wbk1 as String

for example.

--
Regards,
Tom Ogilvy


"Jim Jackson" wrote:

I have several macros that need to be run in progression. Combining them
would make for too long macros. The problem is that when the second macro is
called, all memory is lost (wbk1 = "xxxxxxx.xls") etc. Is there a global
declaration that can be made for each macro in the progression to keep the
assignments?

Thanks,

Jim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 324
Default how to maintain settings when calling a second macro

I knew it had to be simple. Thanks, Tom.

--
Best wishes,

Jim


"Tom Ogilvy" wrote:

declare the macro in a general module at the top outside of any procedure

Public wbk1 as String

for example.

--
Regards,
Tom Ogilvy


"Jim Jackson" wrote:

I have several macros that need to be run in progression. Combining them
would make for too long macros. The problem is that when the second macro is
called, all memory is lost (wbk1 = "xxxxxxx.xls") etc. Is there a global
declaration that can be made for each macro in the progression to keep the
assignments?

Thanks,

Jim

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
Macro Settings timja Excel Discussion (Misc queries) 5 November 23rd 07 01:48 PM
calling next macro Michelle Hanan Excel Programming 1 July 18th 06 06:17 PM
calling a macro jhahes[_25_] Excel Programming 6 August 4th 05 12:22 AM
Calling a macro from a key RWN Excel Programming 0 February 8th 05 05:19 AM
Calling macro in add-in. Clark B Excel Programming 1 July 24th 03 11:05 PM


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

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

About Us

"It's about Microsoft Excel"