Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to read a certain cell containing a date from a specific worksheet and
extract the long month name for my macro. The Excel function would be =TEXT(Data!C9,"mmmm"). I have figured out how to write it in VBA if I am just interested in getting cell and not specifying the specific worksheet: Dim myDate as String myDate = Application.WorksheetFunction.Text(C9,"mmmm") How do I specify that I want C9 from a specific worksheet? I have been successful with the following code: myDate = Application.WorksheetFunction.Text(Worksheets("Dat a").Cells(9,3),"mmmm") Is there a more eloquent way of doing this? It seems awkward. Thanks for the help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
using a conditional suffix in text function format syntax=text(value,format_text) | Excel Worksheet Functions | |||
Can Text Function change output text color? | Excel Discussion (Misc queries) | |||
Advanced text function (combining text) | Excel Worksheet Functions | |||
Using Concatenate function to generate text in Text Box | Charts and Charting in Excel | |||
Macro or Function to make text size to suite text Length? | Excel Discussion (Misc queries) |