+ Reply to Thread
Results 1 to 2 of 2

macro for month named ranges

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Compton, whup whup
    MS-Off Ver
    Excel 2010
    Posts
    108

    macro for month named ranges

    Hello. If I have a date for each day for the entire year, how can I create a macro that applies named ranges to each month. Jan, Feb, Mar, etc. I know it would be probably be easier to just manually select, but I'm curious. Thanks. Please explain the code in as much detail as possible. Obrigado.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: macro for month named ranges

    You can try the following macro
    Please Login or Register  to view this content.
    I manually set the year to 2014 in the code. If you need another year, you may change it in the code or create a variable or ask the user to enter it in a cell.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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. Dynamic named ranges macro
    By hgeek in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-03-2010, 02:00 PM
  2. Macro for two named ranges
    By No.Solutions. in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-24-2009, 05:53 PM
  3. Macro: Named Ranges
    By howardjo in forum Excel General
    Replies: 2
    Last Post: 06-27-2007, 03:37 AM
  4. [SOLVED] macro to make named ranges
    By Rosencrantz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2006, 10:00 AM
  5. [SOLVED] Referring to named ranges in a macro
    By Pontificateur in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-16-2005, 02:05 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