Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Paste TextBox value to worksheet with specific format
How can I make the result placed in rng(1, 13) have the format of
mm/dd/yy? the format of Textbox4 is ddd mmm dd yy. Private Sub CommandButton1_Click() Dim rng Set rng = Cells(ActiveCell.Row, 1) rng(1, 13).Value = TextBox4.Value 'Date of Contact Unload Me End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Paste TextBox value to worksheet with specific format
Try this Patrick. Excel does not like the name of the day as part of the
date group. rng(1, 13) = Format(Mid(TextBox4.Value, 5), "mm/dd/yy") "Patrick C. Simonds" wrote in message ... How can I make the result placed in rng(1, 13) have the format of mm/dd/yy? the format of Textbox4 is ddd mmm dd yy. Private Sub CommandButton1_Click() Dim rng Set rng = Cells(ActiveCell.Row, 1) rng(1, 13).Value = TextBox4.Value 'Date of Contact Unload Me End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If A1 = 4, cut and paste a2:a227 to a specific worksheet | Excel Worksheet Functions | |||
Copy, Paste in a specific format | Excel Discussion (Misc queries) | |||
Copy / Paste between workbooks into a specific worksheet query?! | Excel Programming | |||
cut and paste specific record on same worksheet | Excel Programming | |||
Userform Textbox multiline Vs format in worksheet | Excel Programming |