+ Reply to Thread
Results 1 to 3 of 3

Problem cuz of Hidden sheet

  1. #1
    Forum Contributor
    Join Date
    03-09-2004
    Posts
    140

    Problem cuz of Hidden sheet

    Hi there

    The sheet 2 should the activesheet, cuz the sheet1,where my data, is hidden.

    i need to select the row in the sheet1 where my found result (r) exist in, so i used this line:

    Please Login or Register  to view this content.
    but it gives me wrong msg: Select method of Range class Failed.

    How can select the row without having to activate the sheet1

    Please Login or Register  to view this content.
    Yours
    hesham Almakki
    http://www.almakki.com.ly/

  2. #2
    Chip Pearson
    Guest

    Re: Problem cuz of Hidden sheet

    You can't select cells on a hidden sheet. But that really
    shouldn't matter because it is hardly ever necessary to select a
    cell. Use a Range object variable instead.


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "helmekki"
    <[email protected]> wrote in
    message
    news:[email protected]...
    >
    > Hi there
    >
    > The sheet 2 should the activesheet, cuz the sheet1,where my
    > data, is
    > hidden.
    >
    > i need to select the row in the sheet1 where my found result
    > (r) exist
    > in, so i used this line:
    >
    >
    > Code:
    > --------------------
    > ThisWorkbook.Sheets(1).Cells(r, 1).EntireRow.Select
    > --------------------
    >
    >
    > but it gives me wrong msg: Select method of Range class Failed.
    >
    > How can select the row without having to activate the sheet1
    >
    >
    > Code:
    > --------------------
    >
    > Sub t()
    > Dim r, o As Long
    >
    > r = ThisWorkbook.Sheets(1).Cells.Find(What:=1).Row
    > ThisWorkbook.Sheets(1).Cells(r, 1).EntireRow.Select
    >
    > End Sub
    > --------------------
    >
    >
    > --
    > helmekki
    >
    >
    > ------------------------------------------------------------------------
    > helmekki's Profile:
    > http://www.excelforum.com/member.php...fo&userid=6939
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=378424
    >




  3. #3
    Forum Contributor
    Join Date
    03-09-2004
    Posts
    140

    Thumbs up

    Thank u , problem solved

+ 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