Excel VBA Code - ComboBox Change

Joined
Jun 7, 2005
Messages
2
Reaction score
0
I need to run a workbook in manual calculate.

But I want to know if there is a VBA code (and where to put it) that would make the 'active sheet' calaculate whenever a (new) combo-box selection is made.

John
 
Joined
Jun 21, 2005
Messages
1
Reaction score
0
Combobox ChangeCombo Box change

Hello,

I Just leanred an easy way to do this :

Sub Combobox1_Change()

call ActivesheetCalcluateProcedure

End sub

Sub ActivesheetCalculateprocedure ()

Avtivesheet.Calculate

End Sub

Each time your combobox value changes, the procedure That calculates your activesheet values gets called.

Hope it helps

Cheerios
 
Joined
Jun 7, 2005
Messages
2
Reaction score
0
Hi Mennokie

Many thanks for this code. It looks great. I will try today. But I presume you have to do one code for each combobox - is that correct ... or will this work for multiple boxes on one sheet?

Also, can you advise how I can cause the active sheet to calculate whenever data is entered in Excel cell and user presses enter (when Workbook is in Manual Calculate mode)?

Regards - John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top