![]() |
|
![]() |
![]() | Customer: Sign in Delegate: Sign in Trainer: Log in |
|
Forum home » Delegate support and help forum » Microsoft Excel Training and help » Excel and Macros Excel and MacrosThe UK's most regular instructor-led training courses.
Excel and Macros
Nick has attended:
When using an IF function in excel can you initiate a Macro in the true or false statement?
RE: Excel and Macros
Hi Nick, Thank you for your post, welcome to the forum, the answer to your question is; NO, The reason you cannot have a formula like =IF(A1>10,MyMacro,0)in a worksheet cell is because Excel must keep track of which cells are dependents and precedents of which other cells. It must do this in order to calculate the worksheet in the proper order. VBA code which could change worksheet cells could irreversible confuse the order of calculations. Therefore, Excel forbids code called from a worksheet cell from changing anything in the Excel environment. A FUNCTION procedure can only return a value to Excel, nothing more.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mini sitemap. These are the main areas of our web site. Full sitemap. |
© 2008 Software Training London. All
Rights Reserved. A Microsoft software training company.
info (at) microsofttraining (dot) net
All prices offered for business users and exclude VAT. E&OE