+ Reply to Thread
Results 1 to 9 of 9

how to mention other sheet in macro?

  1. #1
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Question how to mention other sheet in macro?

    how do i do something like:
    Please Login or Register  to view this content.
    ??

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: how to mention other sheet in macro?

    Hi
    this line is correct so what is the matter?
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: how to mention other sheet in macro?

    it is correct?

  4. #4
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: how to mention other sheet in macro?

    it didn't work for me
    maybe cause u have 2007

  5. #5
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: how to mention other sheet in macro?

    No maybe You do not have worksheet with name Sheet2??

  6. #6
    Registered User
    Join Date
    03-08-2012
    Location
    Notts
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: how to mention other sheet in macro?

    Sheets("Sheet2").Activate
    or
    Sheets("Sheet2").Select

    Should also work too... but your original code should work fine unless you don't have a sheet named "Sheet2"

  7. #7
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: how to mention other sheet in macro?

    i do have the sheet

  8. #8
    Forum Contributor
    Join Date
    08-22-2012
    Location
    nj, us
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: how to mention other sheet in macro?

    how to select a range on other sheet?
    like this?:
    Please Login or Register  to view this content.
    Last edited by john456852; 09-11-2012 at 04:16 PM.

  9. #9
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to mention other sheet in macro?

    John, you don't have to "select" a range on another sheet unless you just want the human user to see it. If you're going to "DO SOMETHING" to the range on the other sheet, then you just do it.

    Please Login or Register  to view this content.

    If you really want to "select" it, you have to activate that sheet first so it is onscreen, then you can "select" it with your code from post #1 and the user will see you have selected cells.

+ 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