2 quick questions...

cob98tp

Board Regular
Joined
Nov 18, 2004
Messages
146
Ok first 1... (I'm using Excel 97)

Is there a way of turning off screen updating while a macro runs? I have a macro that takes about 30 mins to run and I was hoping that if I turn off the screen updating it may speed up slightly. (I'm sure I saw a way of doing this but I can't find it again!)

Second question is about combo-boxes. How do I go about increasing the size of the text in one of my combo-boxes?

thanks all for your time!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Screen updating

Application.ScreenUpdating = False 'to disable it

Application.ScreenUpdating = True 'to enable it

amount of columns in a combobox
look for the property TextColumn of the combobox and adjust the value next to it to be the needed number of columns

Text shown in the combobox

type whatever you want to see in the combobox next to the property "Value"

Adding multiple items to a combobox (dropdown menu)

ComboBox1.DropDown
ComboBox1.AddItem "Item1"
ComboBox1.AddItem "Item2"
enz


HTH
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,510
Members
448,967
Latest member
screechyboy79

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