LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Visual Basic error message with version EXCEL 2008

in general code should always be placed in a standard module.
Code behind sheets or other object (userforms for example) is there to
facilitate methods of that object...such as a worksheet event (click, change
and so on)
This is a large subject, and this is just my view.

Excel 2007 allows files to be saved either with or without code...so its not
"compromised" as such, but it may be that the user saved the file without
when it should have been saved with.





"DA" wrote:

Those are the (obvious) places I had already looked. I have now just
solved the mystery. Apparently, the macro code can be on one of the
sheet objects, rather than in a module. I never knew that until now.
Indeed, I found the code there under the object "sheet1". I assume
there is a special reason for one to place the code there, perhaps so
one can easily find where the macro button is. Does that make sense?
Does anyone know a downside to placing it there instead of within a
module?

Thanks
D


 
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
Is Visual Basic the same as Visual Studio 2008? Mike Stewart Excel Worksheet Functions 5 January 11th 09 04:58 PM
Dealing with different version of Excel using Visual Basic 6 khundeen Excel Programming 3 June 27th 06 09:18 AM
visual basic Mid() does not work with swedish version of excel LindhJonas Excel Programming 8 February 7th 06 07:08 PM
Visual Basic Error Message Scubasocks Excel Discussion (Misc queries) 0 January 28th 05 03:29 PM
Excel version identification from Visual Basic Raja Ranga Excel Discussion (Misc queries) 6 January 17th 05 08:48 PM


All times are GMT +1. The time now is 08:56 AM.

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"