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: 106
Default How to make a button VBA code reference other VBA code subroutines???

The reason the poster is having trouble is that he did not assign routines to his buttons. The code he wants to run is in the
button_click event on his form. Your solution will be fine after he moves all of that code that he doesn't want to copy into
seperate subroutines. Until then, he cannot solve his problem. Your solution would be obvious if he had already assigned routines to
his click events instead of putting his code there. If he had known enough about VBA to have his code in seperate subroutines and
assigning them, assuming that his code doesn't also manipulate the form and its controls, he would already know enough not to need
our help.
--
RMC,CPA


"bill k" wrote in message
...

Sub doitall()
routine1
routine2
etc.....
End Sub

where routine1 is the name of the sub you assigned to button1
no brackets just the name


--
bill k


------------------------------------------------------------------------
bill k's Profile: http://www.excelforum.com/member.php...nfo&userid=821
View this thread: http://www.excelforum.com/showthread...hreadid=470870




 
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
Make macro-button sheet reference relative Perez Excel Programming 3 May 20th 05 10:38 AM
Add a Button with code Alan Smykowski Excel Programming 4 March 16th 05 03:33 AM
How Do I Run Subroutines in .xla files from VBA Code in Spreadshee John Loo Excel Programming 3 November 3rd 04 12:21 AM
Button, but no code Aaron Fude Excel Programming 3 May 16th 04 05:32 PM
Button, but now code Aaron Fude Excel Programming 2 May 16th 04 10:35 AM


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