+ Reply to Thread
Results 1 to 4 of 4

If the macro's condition is not met then run another macro

  1. #1
    Registered User
    Join Date
    11-10-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    28

    If the macro's condition is not met then run another macro

    Hello,

    The macro below cuts all rows that have "1" in column F and and then pastes them into sheet2. I would like to modify it as follows: if there are no cells in column F with "1" then I'd like to run another macro (if no "1" in F then call macro 2). I'm not sure how to put it and where to put it.

    I'd appreciate any suggestions.

    Regards,
    shinobi

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: If the macro's condition is not met then run another macro

    like this maybe -

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-10-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: If the macro's condition is not met then run another macro

    Hi wotadude,

    Thanks for the suggestion. It doesn't seem to work, it freezes excel. I have to try something simpler and break the macro down into smaller pieces, as in find "1" in column F, if there is "1" then run the rest of the macro as a separate sub (macro1), if there is no "1" then run another macro (macro2). Will have to think of proper phrasing.

    Regards,
    shinobi

  4. #4
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: If the macro's condition is not met then run another macro

    try ....

    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