+ Reply to Thread
Results 1 to 5 of 5

Hide Colums before current date

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    4

    Cool Hide Colums before current date

    I have setup a freeze pane in this current workbook. But what I want to happen is when someone opens the workbook the columns scroll to the 1st of the month of the current month.... I don't want to hide previous columns, just want to scroll the current. Anyone know if this is possible.....
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Hide Colums before current date

    Hi pulsarman605,

    You probably need something like the following code (tested using Excel 2003):

    ThisWorkbook:
    Please Login or Register  to view this content.
    If you double click on any cell in Row 1 the following will allow you to go to the first of the month:
    Sheet1 Module:
    Please Login or Register  to view this content.
    Ordinary Code Module:
    Please Login or Register  to view this content.
    I noticed that you don't use 'Option Explicit'. To prevent typos from ruining days and weeks of work 'Option Explicit' is NEEDED at the top of each code module. This prevents errors caused by missspellings and FORCES every variable to be DECLARED (e.g. dim i as Integer). http://www.cpearson.com/excel/DeclaringVariables.aspx

    Lewis

  3. #3
    Registered User
    Join Date
    05-19-2014
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Hide Colums before current date

    Hello pulsarman605!

    Mmmmmm..... I think you can try this:

    This Workbook:

    Please Login or Register  to view this content.
    Now use one of these codes in one of your Modules.... here you have 2 options:

    1. This code will scroll your workbook to the current DAY:

    Please Login or Register  to view this content.
    2. This code will scroll your workbook to the 1st of the month of current month:

    Please Login or Register  to view this content.

    Use the one that suits your needs, and Please let me know if that helped you!

    Regards,

    Alvaro
    Last edited by amromerodiaz; 07-23-2014 at 09:49 AM.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Hide Colums before current date

    hi pulsarman605, welcome to Excelforum, option
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Hide Colums before current date

    Cheers guys..... that was doing my head in!!!! ;-)

+ 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. [SOLVED] Need average of days for date values from date to current day that updates current date
    By FinGhost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2013, 04:41 PM
  2. Replies: 0
    Last Post: 05-18-2013, 03:29 AM
  3. freeze first colums and hide one colums
    By pejoi in forum Excel General
    Replies: 2
    Last Post: 08-09-2012, 03:50 AM
  4. adding current date then after saving the file current date function stops
    By gotbitey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2011, 02:15 PM
  5. Trouble charting when I have to hide colums between date and data
    By cranlou in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-16-2009, 04:42 PM

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