+ Reply to Thread
Results 1 to 2 of 2

Conditional Macro

  1. #1
    Registered User
    Join Date
    04-30-2004
    Posts
    78

    Talking Conditional Macro

    I created a macro using the Tools/'Record New Macro' process. I am not familiar programming in Visual Basic. To run the macro, I do a ctrl/r. I would like to be able to do a ctrl/r and have the macro run but only under the condition that a certain cell contains a defined quantity. For example, I would like the macro to run only if cell A1 contains the numeric value 50. How might I go about doing this?

  2. #2
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    Open the macro . (Tools >> Macro >> Macros) Press “Step Into”. This opens the VB Editor with the name of the macro highlighted.

    Add this line of code just below the macro's definition:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1