Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
one way: sub month_year() dim rng as range set rng = activesheet.range("A6") rng.value = now rng.numberformat = "MMM - YYYY" end sub assign a button to this macro -- Regards Frank Kabel Frankfurt, Germany JohnE wrote: I am wanting the current month and year to show in range (A6) thru the use of code and a button. But, I am having difficulty using the month(date) as it returns a number for the month. I haven't tried to add the year until I get the month figured out. How do I go about getting the Month - Year into a cell from code? Thanks for any assistance. *** John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Determine year over year date for comparison | Excel Worksheet Functions | |||
What is the best method to add a date picker to a spreadsheet? | Excel Discussion (Misc queries) | |||
Year-to-date year to date formula | Excel Worksheet Functions | |||
Date formula: return Quarter and Fiscal Year of a date | Excel Discussion (Misc queries) | |||
Need a method to extract the Date from a cell to a new cel | Excel Programming |