LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to make a button VBA code reference other VBA code subroutines???


Hey you Excel geniuses out there. I have a little problem that is
stumping me. I have a small excel program that uses 6 inputs that the
user changes, a button with VBA code and an output. When the user makes
their changes, they press the button and the new value is calculated
based on the VBA code and is spit out in the output field. I have about
10 copies of this button with 10 different output fields. This is simply
so the user can compare conditions, setups, try different combinations,
etc... without having to lose the previous output every time. HERE IS
THE PROBLEM - I am trying to create an "Update All" button. This button
would theoretically perform the function of all 10 other buttons
simultaneously and update everything. However, I don't know of any way
to make this one button reference the subroutines of the other 10.
Right now, I have to copy and paste all 10 copies of the code into the
code for he Update All button. When I do this, Excel says that there is
too much code and won't perform the function.
DOES ANYONE KNOW HOW TO SIMPLY REFERENCE THE SUBROUTINES FROM THE OTHER
BUTTONS RATHER THAN COPYING AND PASTING THE CODE?? This would greatly
help. Thank You

Gunman


--
gunman
------------------------------------------------------------------------
gunman's Profile: http://www.excelforum.com/member.php...o&userid=23994
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:05 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"