Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Feb 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hiding worksheets (Excel)

    Hi all,
    Can I hide a worksheet which all the data are placed in that worksheet? The only worksheet visible is the one that user can see the command buttons etc. How can I hide the source worksheet? Because when i hide it using sheet1.visible.false, there is an error msg when the command button is pressed in the visible worksheet. Thank u.

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Hiding worksheets (Excel)

    At least one sheet must be visible. It can be a wroksheet or a chartsheet.

    Steve

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hiding worksheets (Excel)

    The correct syntax would be:

    <pre> Worksheets("Sheet1").Visible=False
    </pre>

    Legare Coleman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •