LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default cant stop OnTime initiated macro, etc

Nathan,

ThisWorkbook is a class module, a very special class module. With class
modules, code is only accessible via a class identifier.

As I suggested, some code is best placed there, some is better in a standard
code module.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"nathan" wrote in message
...
Forgive me for not having much experience with coding and the different

types of modules. If I am understanding your question correctly, all of the
code (procedures) is located in the same module which is in ThisWorkbook.
As far as I can tell the module is a standard module (as opposed to a class
module). Should some of the code be in separate modules?

FYI - I am using ThisWorkbook.name because the workbook is constantly

being saved under a new name. I want the procedures to work in the new
named workbooks and this way I don't have to change the code to reflect the
new name. That's the idea anyway.

thanks for your help.





 
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
Find %ontime & SUMIF ontime ie: find matching sets within Range... Chris T-M Excel Worksheet Functions 3 October 10th 08 08:14 PM
links initiated by cell data JB Excel Discussion (Misc queries) 10 June 14th 08 01:26 PM
How does msgbox stop the OnTime event? Emile van Mierlo Excel Programming 12 May 4th 04 01:10 PM
need a function (not macro with ontime) to record a snapshot of a changing cell Shannon Excel Programming 3 February 2nd 04 06:26 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


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