+ Reply to Thread
Results 1 to 2 of 2

correlating month to number

  1. #1
    Registered User
    Join Date
    06-19-2008
    Posts
    34

    correlating month to number

    I'm new to coding and trying to write some code that examines the content of a cell and changes the content of another cell. I have created a combo box using a validation with the twelve months of the year and would like that when a month is selected its corresponding number (1-12) appears in an adjacent cell. Here is my code
    Please Login or Register  to view this content.
    Where should i place this code? Will this code even work?
    The month string is stored in a merged cell that consist of I2:N2.
    Thanks for any help that you can give me



    Please ignore, I found out a quicker, easier way to do it using Vlookup.
    Last edited by dlroo; 06-25-2008 at 04:55 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello dlroo,

    If you have the list in a validation list then the link cell will hold the selection index number. If all you have is January through December in your list, the index will equal the month number.

    Sincerely,
    Leith Ross

+ 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