+ Reply to Thread
Results 1 to 2 of 2

How can I Select a hidden sheet within a macro?

  1. #1
    Registered User
    Join Date
    08-24-2013
    Location
    Morgan Hill, CA
    MS-Off Ver
    Excel 2010
    Posts
    9

    How can I Select a hidden sheet within a macro?

    I would like to keep the Report Data sheet hidden, but need to execute the macro below upon opening the workbook. Is there some way to revise the Sheets Select statement below to make this happen?

    Sub APOpStmtFill()

    Sheets("Report Data").Select

    With Range("A4:A" & Range("B" & Rows.Count).End(xlUp).Row)
    .Value = Application.Clean(.Value)
    Range("A4:A" & Range("B" & Rows.Count).End(xlUp).Row).SpecialCells(4).FormulaR1C1 = "=R[-1]C"
    End With
    End Sub

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,459

    Re: How can I Select a hidden sheet within a macro?

    select and activate are unnecessary actions, so forget them.
    Please Login or Register  to view this content.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to sheet to very hidden
    By sureshpunna in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2013, 01:20 AM
  2. [SOLVED] Go to a specific sheet if the sheet to open in the macro is hidden?
    By darrenkaye in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-20-2013, 03:45 PM
  3. Duplicate Hidden Sheet Using Macro
    By mrsogmax76 in forum Excel General
    Replies: 0
    Last Post: 10-08-2009, 04:15 PM
  4. Select hidden sheet
    By excelnovice2007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2009, 04:35 PM
  5. Macro to select sheet thatīs Hidden
    By Portuga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2008, 09:09 AM

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