Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default module location

When I execute one of my macros, it starts another excel
file before executing the macro. I think that vba has it
stored in the second excel file.

Can anyone tell me how to check this; and how to get the
macro located only in the first excel file so the macro
does not start another excel file in order to do its work?

  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default module location

hi,
if the macro excutes then it is stored in your 1st file or
at least enough code to open the 2nd file to call the
macro.
if it opens another file, then the macro has code in it to
open the 2nd file.
Post your code.

-----Original Message-----
When I execute one of my macros, it starts another excel
file before executing the macro. I think that vba has it
stored in the second excel file.

Can anyone tell me how to check this; and how to get the
macro located only in the first excel file so the macro
does not start another excel file in order to do its work?

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default module location

Instead of doing Macro, Run do Macro, Edit.
Copy the whole macro and post it here.

RBS

"Paul" wrote in message
...
When I execute one of my macros, it starts another excel
file before executing the macro. I think that vba has it
stored in the second excel file.

Can anyone tell me how to check this; and how to get the
macro located only in the first excel file so the macro
does not start another excel file in order to do its work?


  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default module location

hi again,
forgot to mention,
to see modules, open the vb editor (alt+F11). on the left
click the + next to your project(file name). this should
display all the modules in your file.

-----Original Message-----
hi,
if the macro excutes then it is stored in your 1st file

or
at least enough code to open the 2nd file to call the
macro.
if it opens another file, then the macro has code in it

to
open the 2nd file.
Post your code.

-----Original Message-----
When I execute one of my macros, it starts another excel
file before executing the macro. I think that vba has

it
stored in the second excel file.

Can anyone tell me how to check this; and how to get the
macro located only in the first excel file so the macro
does not start another excel file in order to do its

work?

.

.

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 - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
Changing Default Module Location Ron Dahl[_2_] Excel Programming 1 October 1st 04 04:13 AM
Variable from a sheet module in a class module in XL XP hglamy[_2_] Excel Programming 2 October 14th 03 05:48 PM


All times are GMT +1. The time now is 10:11 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"