Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-03-2011, 03:15 PM
macropod's Avatar
macropod macropod is offline Command Button Windows 7 32bit Command Button Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Brock,

Each command button will need its own macro, but all this will need is code to call the larger macro to do the real work. For example:
Code:
Private Sub CmdDoAction1_Click()
Call MySub
End Sub
If you know how many of these could potentially be needed, you could simply build your code with them ahead of time. They'll remain dormant until the corresponding command button gets created.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the undo command Codey Excel 1 06-15-2010 01:10 PM
Command Button Using the LOOKUP Command Grapejuice Excel 2 10-15-2008 02:02 PM
Add-In:How to add command right click command bar phang Outlook 0 01-15-2007 02:53 AM
command buttons ronf Excel 0 04-28-2006 08:32 AM
command buttons ronf Excel 0 12-03-2005 06:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft