Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro execution refers not to the active sheet/excel file

Hi folks!

How do I tell a macro to work on the active sheet?
My problem is: I have created several macros and assigned to a toolbar.

When I move the excel file Excel everytime refers to the file where I
have assigned the macros to the toolbars...

Please help me! I have been sitting for a really long while trying to
solve this problem.

Thanks!



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro execution refers not to the active sheet/excel file

If you want the menu to use macros from the activeworkbook, you would have
to reassign them.

If you mean you have macros that need to refer to the activesheet, then use
the activesheet object in your code.

--
Regards,
Tom Ogilvy

"blop" wrote in message
...
Hi folks!

How do I tell a macro to work on the active sheet?
My problem is: I have created several macros and assigned to a toolbar.

When I move the excel file Excel everytime refers to the file where I
have assigned the macros to the toolbars...

Please help me! I have been sitting for a really long while trying to
solve this problem.

Thanks!



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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 for active sheet only Victor Delta[_2_] Excel Discussion (Misc queries) 4 October 21st 09 08:37 PM
diable macro if a certain sheet is active belvy123 Excel Discussion (Misc queries) 3 July 7th 09 08:39 AM
macro active sheet liem Excel Discussion (Misc queries) 1 January 18th 08 05:48 AM
Active Form during Execution BillCPA Excel Discussion (Misc queries) 0 August 11th 06 03:15 PM
Excel Changes File Name During Code Execution Debbie[_6_] Excel Programming 4 October 25th 03 06:25 AM


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