+ Reply to Thread
Results 1 to 3 of 3

Macro to use Month Function

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Macro to use Month Function

    Hi,

    I need help regarding the below issue.

    I'm Using the below formula in a cell. I'm Trying to use the same through a Macro instead of typing it every time.

    Can someone help me on how to write the below function in VBA.

    Thanks

    Please Login or Register  to view this content.
    Click on the star * if some1 helped you.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Macro to use Month Function

    Good afternoon kittu55

    Not quite exactly sure what context you would want this for (especially the "1" in front, seeing as every date for the past 6 years or so has begun with a 4), but something like this :
    Please Login or Register  to view this content.
    HTH

    DominicB

  3. #3
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Macro to use Month Function

    Hi DominicB,

    I'm trying to get the month number based on the name of month. For Ex: if Cell N3 has Mar i need to get number 3 in cell O3.

    My Mistake i should have mentioned in my 1st post itself. Hope it is clear now.

    Regards

+ 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] Macro to cut and paste current month sheet into the relevant month chosen by a drop down
    By scotty22 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-06-2015, 09:07 AM
  2. [SOLVED] Subtracting MONTH Function from another MONTH Function not working for Fiscal dates
    By amartin575 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 10:52 AM
  3. Macro using vlookups comparing 2 months paysheet(previous month and current month)
    By srinivasan1965 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2012, 03:45 AM
  4. function to fill all days of month to end of month
    By Monique in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-01-2006, 02:45 PM
  5. [SOLVED] function to fill all days of month to end of month
    By YaHootie in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-01-2006, 01:10 AM
  6. Replies: 6
    Last Post: 01-09-2006, 04:55 AM
  7. =Month function in Excel gives incorrect month
    By jbmx in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-14-2005, 03: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