Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Design Best Practices: Form Control Code in Worksheet or Module

Which is best practice: Code for handling clicking of clicking of Form Button
on the worksheet where Button is placed, or in standard module? Both seem to
work but former approach seems to be more logical.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Design Best Practices: Form Control Code in Worksheet or Module

Personal choice really...

If I think it's possible the logic might be used elsewhere, it goes into a
standard module.

I don't mind leaving small code bits in a worksheet, but if it gets more
than a couple of pages long I'll break it into a subroutine or function for
a standard module.

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Bing" wrote in message
...
Which is best practice: Code for handling clicking of clicking of Form
Button
on the worksheet where Button is placed, or in standard module? Both seem
to
work but former approach seems to be more logical.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Design Best Practices: Form Control Code in Worksheet or Module

If you can't define the routine by selecting it from the dropdowns at the
top if the module (sheet module), then in general, it should go in a
standard module.

--
Regards,
Tom Ogilvy


"Bing" wrote in message
...
Which is best practice: Code for handling clicking of clicking of Form

Button
on the worksheet where Button is placed, or in standard module? Both seem

to
work but former approach seems to be more logical.



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
Where?Worksheet code module or Worksheet_SelectionChange event han Kenzie Excel Worksheet Functions 4 January 30th 06 09:41 PM
Worksheet form design rgarber50 Excel Discussion (Misc queries) 4 August 7th 05 05:09 AM
Calendar Control: Can't exit design mode because control can't be created Rone Excel Programming 0 May 24th 04 04:01 PM
Updating form labels from code in a module news.verizon.net[_2_] Excel Programming 2 October 29th 03 04:03 AM
Problem copying worksheet containing code module Basie[_2_] Excel Programming 1 September 3rd 03 12:28 AM


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