Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am using Excel 2007. I have created a VBA module called MyModule. Inside this module, I have defined a public variable as follows: Public blnMyBoolean As Boolean Next, I created a Function to return the value of this variable as follows: Public Function GetMyBoolean() As Boolean GetMyBoolean = blnMyBoolean End Function Next, I used my function as a formula for a cell on one of my worksheets as follows: =GetMyBoolean() The formula in this cell works, but it does not update automatically. If my code changes the value of blnMyBoolean, the only way I can seem to get the value of my cell (from the formula) to update is to select the cell, click at the end of the formula in the formula bar, and then click "Enter". Can anyone tell me if there is a way I can have the value of my cell (from the formula) to be updated constantly (or at least any time my code changes the value of blnMyBoolean)? If I am no going about this in the best way and someone has a better/easier way for me to have a cell reflect the value of a variable inside my VBA code, any advice will be greatly appreciated. Thanks in advance, Paul -- Paul Kraemer |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
display dots inside a cell in graph form but without Excel graph? | Excel Programming | |||
Variable inside function range | Excel Programming | |||
Variable inside a formula | Excel Programming | |||
Variable with no Value inside Macro Equation?? | Excel Programming | |||
variable inside a formula? | Excel Programming |