excel and macros
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in
Home Course details Training formats Pricing FAQ Clients Book online Online schedule (live) Forum Contact us

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Excel and Macros

Excel and Macros

The UK's most regular instructor-led training courses.
Training information: financial excel course london · Excel courses · Microsoft Excel Training UK
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Medium Priority · Version 2003

Excel and Macros

Nick has attended:
Excel Advanced course

by - delegate Nick [1 post] (2008 May 9 Fri, 16:47) replyReply

When using an IF function in excel can you initiate a Macro in the true or false statement?

Excel Intermediate 1 day course List price £225
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 May 19 Mon Bloomsbury 0 FULL    
2003/XP 2008 May 20 Tue Tooting 0 FULL    
2003/XP 2008 May 20 Tue Bayswater 1 book now £195 £205
2003/XP 2008 May 22 Thu Bloomsbury 7 book now £188 £215
2003/XP 2008 May 29 Thu Southwark 4 book now £207 £215
2003/XP 2008 Jun 3 Tue Bayswater 5 book now £198 £215
Full Schedule: See all 169 Excel Intermediate course dates.
Bookings currently available until 25th November 2009.

RE: Excel and Macros

by - trainer Pete platinum contributer[571 posts] (2008 May 9 Fri, 23:44) Edited on 2008 May 9 Fri, 23:49 replyReply

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.

However, you could use the worksheet's Change event to do something like this.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Application.Intersect(Target, Range("A1")) Is Nothing Then
If Target.Value > 10 Then MsgBox "Put Your Code Here"
End If
End If
End Sub

regards Pete


Related articles

· Tips to Facilitate Printing of Excel worksheets
· Take the Anxiety out of Domestic Finances with Microsoft Excel
· 5 Microsoft Excel Charts for Creating Stunning Business Documents
· Prepare for your MOS Certification with MS Excel Courses
· Microsoft Excel Training - Numerical excellence for all

Please browse our web site to find out more about
financial excel course london and other Microsoft training courses.

Excel tip:

Creating Quick Column Charts

Select the information you want to appear in the chart and press F11. This creates a new chart on a seperate worksheet.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information