+ Reply to Thread
Results 1 to 8 of 8

Month Name

Hybrid View

  1. #1
    Registered User
    Join Date
    09-03-2014
    Location
    Cullman, Alabama
    MS-Off Ver
    2010
    Posts
    31

    Month Name

    Hi I am trying to get the month Name (EX. Today is 12-Dec-!4. So i would like it to put" December" in the cell). I Have the number currently being used with

    Range("F17").Value = Month(Date)

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Month Name

    try

    
    Sub macro()
    For Count = 1 To 12
    Range("A" & Count).Value = MonthName(Count)
    Next
    End Sub
    Last edited by mehmetcik; 12-12-2014 at 04:16 PM.

  3. #3
    Registered User
    Join Date
    09-03-2014
    Location
    Cullman, Alabama
    MS-Off Ver
    2010
    Posts
    31

    Re: Month Name

    when i use this it puts January instead of the current month

  4. #4
    Registered User
    Join Date
    09-03-2014
    Location
    Cullman, Alabama
    MS-Off Ver
    2010
    Posts
    31

    Re: Month Name

    I am a little confused on where to insert this

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Month Name

    Range("F17").Value = Format(Date, "mmmm")
    or

    With Range("F17")
      .Value = Date
      .NumberFormat = "mmmm"
    End With
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    09-03-2014
    Location
    Cullman, Alabama
    MS-Off Ver
    2010
    Posts
    31

    Re: Month Name

    Quote Originally Posted by shg View Post
    Range("F17").Value = Format(Date, "mmmm")
    or

    With Range("F17")
      .Value = Date
      .NumberFormat = "mmmm"
    End With
    thank you this worked

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Month Name

    It replaces the only code you posted.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Month Name

    You're welcome.

+ 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. Caclulate month of quarter (1st month - 3rd month)
    By kuraitori in forum Excel General
    Replies: 5
    Last Post: 07-15-2018, 03:53 PM
  2. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  3. [SOLVED] Counting & summing formula (until last month,this month,until this month..
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2014, 01:14 PM
  4. [SOLVED] Auto instert Month names for This month, Last month and Next month
    By hemal89 in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 12:01 PM
  5. Replies: 4
    Last Post: 05-24-2013, 01:24 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