Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom date format in vba 1

Status
Not open for further replies.

vba317

Programmer
Mar 5, 2009
708
US
I have to format individual columns I am having a problem with setting the format to date. Any help would be appreciated. I get a compile error on the format function

Code:
With wb.Worksheets("Sheet1").Columns(2)
        .Font.Bold = False
        .Font.Size = 10
        .VerticalAlignment = xlCenter
        .ColumnWidth = 9
    [Red]    .Format= (Date, "mmyyyy")[/Red]
    End With
 
.NumberFormat = "mmyyyy"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top