LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Weird template/macro behavior ??

If it is a command button, pressing the button executes the click event for
the command button. These events are not listed in Tools=Macro=Macros
because they are marked as Private

Private Commandbutton1_Click()


end Sub

You can get to the code, by right clicking on the sheet tab where the button
is located and choosing view code.

--
Regards,
Tom Ogilvy

"David" wrote in message
...
Here is my situation:
I have an XLT template. When I open it there are no macros
listed in Tools--Macros--Macros.
However, when I save it as an XLS, I can press my command
button and the macro runs.
The only place I can find the macro is in another XLS file
in the same folder.
Somehow my template is referring to the macro in another
XLS file and this reference gets carried over when I save
an XLS based on the template.
I have no idea how this happened but how do I fix it and
prevent it from happening again.
I'm using Win 2000 and Excel 2000.

- David



 
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
Weird Links Behavior Jon Oakdale Links and Linking in Excel 5 November 13th 08 08:44 AM
Copy and Paste Date - weird behavior matelot Excel Discussion (Misc queries) 3 February 23rd 07 05:20 PM
weird macro behavior Dave F Excel Discussion (Misc queries) 0 November 30th 06 03:35 PM
Weird worksheet saving behavior siouxland Excel Discussion (Misc queries) 0 October 12th 06 02:22 PM
Excel weird behavior [email protected] Excel Discussion (Misc queries) 4 May 25th 06 08:23 PM


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