![]() |
|
#4
|
|||
|
|||
|
Are you in Excel (This is the PowerPoint section!)
Maybe: Sub getdate() Dim myDate As Date myDate = ActiveSheet.Range("A1") ActiveSheet.Range("A1") = getDay(Day(myDate)) & " " & MonthName(Month(myDate)) End Sub Function getDay(dayNum As Long) As String Select Case dayNum Case Is = 1, 21, 31 getDay = dayNum & "st" Case Is = 2, 22 getDay = dayNum & "nd" Case Is = 3, 23 getDay = dayNum & "rd" Case 4 To 30 getDay = dayNum & "th" End Select End Function |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
How to know the "format" of the "table of content"?
|
Jamal NUMAN | Word | 2 | 07-08-2011 02:24 AM |
How to choose a "List" for certain "Heading" from "Modify" tool?
|
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
Why the "table of contents" doesn't take the same format of the "headings"?
|
Jamal NUMAN | Word | 5 | 06-15-2011 10:14 AM |
"Format" tab has no "Picture"
|
Cara | Drawing and Graphics | 2 | 05-20-2011 10:13 AM |