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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

SteveO59L

Well-known Member
Joined
Apr 21, 2004
Messages
7,899
Try Application.screenupdating = false as the first line of your code.
 

~Zodiac~

Board Regular
Joined
Jan 10, 2005
Messages
70
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
 

cob98tp

Board Regular
Joined
Nov 18, 2004
Messages
146
Thanks for the help! I've managed to sort both problems out with your tips.

(y)
 

Forum statistics

Threads
1,147,508
Messages
5,741,571
Members
423,668
Latest member
Audorin

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
Top