+ Reply to Thread
Results 1 to 10 of 10

Macro to fill dates as per the selected month in the cell A1

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Macro to fill dates as per the selected month in the cell A1

    Hi,
    I am looking for a macro which should fill the dates if the month is selected in cell A1.
    I have two sheets "Input" and "Output". In sheet Input cell A1 I have a list from Jan to Dec. If I select the month in that list then it should fill the dates in sheet "Output" starting from Cell A1.

    Please help me.

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to fill dates as per the selected month in the cell A1

    If it is not possible, please suggest me an alternate....

  3. #3
    Registered User
    Join Date
    09-01-2012
    Location
    cairo
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Macro to fill dates as per the selected month in the cell A1

    how to make makro to fill now function in certain cell

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Macro to fill dates as per the selected month in the cell A1

    stevman,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Macro to fill dates as per the selected month in the cell A1

    Kishore,

    Which date should be populated?

    Do you have a sample file?

  6. #6
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to fill dates as per the selected month in the cell A1

    Hello Arlu,

    I want the date to start from the starting date to the end date of that selected month. I am attaching the sample file. Please help..

    In the output sheet in column A1 it should start the start date of the pirticular month which is selected in the sheet Input. and end the last date in the same column A.
    Ex: Jan if selected in Input then it shoud populate Jan 1 to Jan 31 in sheet output from A1: A31.

    The same way for other months also.
    Attached Files Attached Files
    Last edited by kishoremcp; 09-03-2012 at 05:31 AM.

  7. #7
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to fill dates as per the selected month in the cell A1

    Any Help!!

  8. #8
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to fill dates as per the selected month in the cell A1

    Professionals of this website...please help me with an alternate macro if it is not possible or suggest me something else...

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro to fill dates as per the selected month in the cell A1

    no macros (see attachment)
    Attached Files Attached Files

  10. #10
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Macro to fill dates as per the selected month in the cell A1

    Try this,
    Select a month and check output.
    Attached Files Attached Files
    Last edited by JapanDave; 09-04-2012 at 03:34 AM.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

+ 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