Re: $$Excel-Macros$$ Re: Disable specific macro's and functions

2011-06-27 Thread Vasant
Use a public variable like this Public Flg as boolean in the workbook open even set the variable to false Flg=False Hv a toggle button on the worksheet which will set the Flg value to True and False alternatively when you press the button. when the flg is true, function will work else it will n

$$Excel-Macros$$ Re: Disable specific macro's and functions

2011-06-27 Thread GoldenLance
Try removing Application.Volatile On Jun 27, 5:38 pm, crossy75 wrote: > I have this bit of code in a spreadsheet - it is used with a formula > to count the number of visible rows. This is useful in accounts where > people hid things thus counting what you see isnt always what you get! > > 'Functi