+ Reply to Thread
Results 1 to 4 of 4

Drop down list range - how to change each month quickly with VBA?

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    11

    Drop down list range - how to change each month quickly with VBA?

    Hi, I produce a report at the beginning of each month and there are 30 worksheets in the report. The report has a drop down box on each worksheet allowing the user to select the month of data they wish to see. The problem I have is that each month I have to extend the data validation range on each worksheet by one row (to show the additional month, i.e on Sheet1 which is a hidden sheet i have listed Jan, Feb, Mar, April, May, June, July etc on each row and each drop down box refers to this range) - it takes me a long time to do this for every worksheet and each drop down box. is there a quick way to do this?

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Drop down list range - how to change each month quickly with VBA?

    You need a dynamic named range.

    Search is your friend.
    David
    (*) Reputation points appreciated.

  3. #3
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    Re: Drop down list range - how to change each month quickly with VBA?

    If you make your data range for the dropdown list a table (Assuming Excel 2010 or after; previously, I think it was called a list) then it will extend automatically as you add more data to the bottom of the list.

  4. #4
    Registered User
    Join Date
    07-05-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Drop down list range - how to change each month quickly with VBA?

    a dynamic range did the job! thx for the advice
    this has saved me a lot of time changing each drop down range

+ 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