Variables, Macros and Command Buttons?

samsonjonesuk

New Member
Joined
Aug 24, 2005
Messages
18
Hi everyone

I have a master spreadsheet containing some hefty macros (10 in all), some are relatively large macros (for me anyway) with around 1000 lines and quite a lot of processing power.

Anyway, in ordr to simplify this to the people who will be running the processes I am trying to create a master control worksheet containing Command Buttons.

All they need to do is click the button and follow the instructions - simple.

However I am not a macro expert never mind a Command Button expert and my first noob problem is:-

If I assign the macro code to each command button call 1 - 10, will all of the code form one monster macro and hence create performance problems.

Following my answer to this I will decide whether to embarrass myself further.

Thanks

Sean
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Thanks for the swift response.

To my next question then, each macro has a number of public variables, will these still work using command buttons to process them or do i need to make them private or something?

Sorry for my noobness.

Sean
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,390
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top