+ Reply to Thread
Results 1 to 2 of 2

Hide columns at opening of file with macro

  1. #1
    Registered User
    Join Date
    09-22-2013
    Location
    Aurora, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    30

    Hide columns at opening of file with macro

    Hello: I'm trying to automatically hide columns D through I upon opening a file, is this possible and can you please provide a simple macro that will do it. I'm very new at this and don't how to approach it.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Hide columns at opening of file with macro

    Hi, FlyFisherman,

    you might use ThisWorkbook and Wthe Workbook_Open-event to do so.

    Should work on the ActiveSheet if it`s a worksheet but will error out if Chart:
    Please Login or Register  to view this content.
    Pass the name of the worksheet:
    Please Login or Register  to view this content.
    Loop through all worksheets in the workbook:
    Please Login or Register  to view this content.
    Only one of the procedures may be used in ThisWorkbook.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. Replies: 12
    Last Post: 06-07-2011, 04:17 AM
  2. Opening files macro help (forcing directory, opening a tsv file)
    By NukedWhale in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2010, 03:07 PM
  3. Replies: 1
    Last Post: 01-26-2007, 02:25 PM
  4. [SOLVED] How to hide the outlook toolbar when opening an excel file
    By Chris in forum Excel General
    Replies: 0
    Last Post: 12-27-2005, 02:10 PM
  5. File opening via Macro with varying file name
    By TomFish79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2005, 09:32 AM

Tags for this Thread

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