+ Reply to Thread
Results 1 to 3 of 3

Can't hide working sheet

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Can't hide working sheet

    I have a routine that operates on the workbook open event to write the user name and date to Columns A and B on the Sheet1 worksheet, and if I open the workbook to that worksheet everything performs as desired. However, I don't want my users seeing this sheet, so want to open to Sheet2, but write the info to Sheet1. I tried to do that by turning off screen updating and opening to sheet 2, but get a Run-Time error 1004 "Select Method of Range class failed".

    My former code for the line in question was:
    Please Login or Register  to view this content.
    That's been replaced with the non-working line:
    Please Login or Register  to view this content.
    The full code is posted below.

    Please Login or Register  to view this content.
    Last edited by jomili; 05-07-2010 at 12:16 PM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Can't hide working sheet

    You can't select a range on a sheet that isn't the active one, but you don't need to select it anyway:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Can't hide working sheet

    Nice. I like the way you used the With and End With statements for both my problem area and also my clunky area. I really enjoy seeing a more elegant solution than I could think of. Thanks for your help; it works beautifully.

+ 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