+ Reply to Thread
Results 1 to 5 of 5

Qualifying Code Simple Problem

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Qualifying Code Simple Problem

    How do I alter the below so that if I call the macro in a completely different sheet it will run fin on sheet Saturday?
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Qualifying Code Simple Problem

    If the call is made on the same workbook it will run fine.

    otherwise,

    Windows("yoursheet.xlsx").activate (the one that contains the Saturday tab)

    ... and then the rest of the code

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Qualifying Code Simple Problem

    Thanks for that Rcm but I want it so that the worksheet does not have to be active. So I'm looking for something like With Worksheets .sort. etc etc

  4. #4
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Qualifying Code Simple Problem

    So it should be something like...but this doesn't quite work atlhough I think it is close.......
    Please Login or Register  to view this content.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Qualifying Code Simple Problem

    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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