ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   funny calculations (https://www.excelbanter.com/excel-programming/306499-funny-calculations.html)

big t

funny calculations
 
Hi everyone,

I'm working in Excel 2003 and I have a workbook with a dropdown box on it.
In this particular situation the dropdown is disabled and not visible.

Where I have Calculate in my VBA or when I switch the calculation mode
between manual and automatic it seems the code thinks the dropdown box has
changed and it runs the code associated with such a change.

Any ideas?
TIA
big t


BrianB

funny calculations
 
Generally we need to have a global variable that will skip the dropdow
code using something like :-


Code
-------------------
Sub DropDown1_Change()
If DropDownDisable = True Then Exit Sub
' other code
End Sub

-------------------


--
Message posted from http://www.ExcelForum.com


Tom Ogilvy

funny calculations
 
Put your event code in the click event rather than the change event.

--
Regards,
Tom Ogilvy

"big t" wrote in message
...
Hi everyone,

I'm working in Excel 2003 and I have a workbook with a dropdown box on it.
In this particular situation the dropdown is disabled and not visible.

Where I have Calculate in my VBA or when I switch the calculation mode
between manual and automatic it seems the code thinks the dropdown box has
changed and it runs the code associated with such a change.

Any ideas?
TIA
big t




big t

funny calculations
 
thanks for your suggestions, i'll try them out...

cheers
big t


"big t" wrote:

Hi everyone,

I'm working in Excel 2003 and I have a workbook with a dropdown box on it.
In this particular situation the dropdown is disabled and not visible.

Where I have Calculate in my VBA or when I switch the calculation mode
between manual and automatic it seems the code thinks the dropdown box has
changed and it runs the code associated with such a change.

Any ideas?
TIA
big t



All times are GMT +1. The time now is 02:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com