+ Reply to Thread
Results 1 to 5 of 5

Opeations on xlSheetVeryHidden worksheet

  1. #1
    Frederick Chow
    Guest

    Opeations on xlSheetVeryHidden worksheet

    Hi all,

    Can I perform operations, like sorting, on a xlSheetVeryHidden worksheet?
    Thanks for your advice.

    Frederick Chow
    Hong Kong.



  2. #2
    Tom Ogilvy
    Guest

    Re: Opeations on xlSheetVeryHidden worksheet

    Sure, but why not try it.

    --
    Regards,
    Tom Ogilvy

    "Frederick Chow" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi all,
    >
    > Can I perform operations, like sorting, on a xlSheetVeryHidden worksheet?
    > Thanks for your advice.
    >
    > Frederick Chow
    > Hong Kong.
    >
    >




  3. #3
    Frederick Chow
    Guest

    Re: Opeations on xlSheetVeryHidden worksheet

    Because why I sort on contents on XlSheetVeryHidden sheet, it causes a
    run-time error unless I removed it.

    Maybe I should try it again.

    Frederick Chow

    "Tom Ogilvy" <[email protected]> wrote in message
    news:[email protected]...
    > Sure, but why not try it.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "Frederick Chow" <[email protected]> wrote in message
    > news:%[email protected]...
    >> Hi all,
    >>
    >> Can I perform operations, like sorting, on a xlSheetVeryHidden worksheet?
    >> Thanks for your advice.
    >>
    >> Frederick Chow
    >> Hong Kong.
    >>
    >>

    >
    >




  4. #4
    Dave Peterson
    Guest

    Re: Opeations on xlSheetVeryHidden worksheet

    Yes.

    Just make sure you fully qualify your ranges and don't do any selecting.

    with worksheets("hidden")
    .range("a1:g99").sort key1:=.range("a1"), ....
    end with

    Frederick Chow wrote:
    >
    > Hi all,
    >
    > Can I perform operations, like sorting, on a xlSheetVeryHidden worksheet?
    > Thanks for your advice.
    >
    > Frederick Chow
    > Hong Kong.


    --

    Dave Peterson

  5. #5
    Tom Ogilvy
    Guest

    Re: Opeations on xlSheetVeryHidden worksheet

    Here is an example. Worked for me:

    Sub TestSort()
    Set sh = ActiveSheet
    sh.Visible = xlSheetVeryHidden
    Set rng = sh.Range("A1:F30")
    rng.Formula = "=trunc(rand()*1000+1)"
    rng.Formula = rng.Value
    rng.Sort Key1:=sh.Range("B1")
    sh.Visible = xlSheetVisible

    End Sub

    --
    Regards,
    Tom Ogilvy

    "Frederick Chow" <[email protected]> wrote in message
    news:[email protected]...
    > Because why I sort on contents on XlSheetVeryHidden sheet, it causes a
    > run-time error unless I removed it.
    >
    > Maybe I should try it again.
    >
    > Frederick Chow
    >
    > "Tom Ogilvy" <[email protected]> wrote in message
    > news:[email protected]...
    > > Sure, but why not try it.
    > >
    > > --
    > > Regards,
    > > Tom Ogilvy
    > >
    > > "Frederick Chow" <[email protected]> wrote in message
    > > news:%[email protected]...
    > >> Hi all,
    > >>
    > >> Can I perform operations, like sorting, on a xlSheetVeryHidden

    worksheet?
    > >> Thanks for your advice.
    > >>
    > >> Frederick Chow
    > >> Hong Kong.
    > >>
    > >>

    > >
    > >

    >
    >




+ 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