Results 1 to 3 of 3

Referring to cells on other worksheet in VB?

This is a discussion on Referring to cells on other worksheet in VB? within the Excel Questions forums, part of the Question Forums category; Simple question with a probably very simple answer: I want to sort values on an other worksheet then the one ...

  1. #1
    New Member
    Join Date
    Nov 2002
    Posts
    3

    Default

    Simple question with a probably very simple answer:

    I want to sort values on an other worksheet then the one i'm writing the code in. Now I have:

    Set Rng = Range("A2:C21")

    but "A2:C21" refers to the cells on the same page. I want to refer to an other worksheet in my document.

    e.g. "Paper1!A2:C21"
    That's how it works in Excel, but in VB it won't work.

    Thanks already!

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Southfield,MI USA
    Posts
    1,591

    Default

    Set Rng = WorkSheets("Paper1").Range("A2:C21")

  3. #3
    New Member
    Join Date
    Nov 2002
    Posts
    3

    Default

    Thank you very much!!!

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
  •  


DMCA.com