Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My worksheet contains several thousand records in which I have 3 columns with
date values. I need to know how to write a macro that would add a tick mark to the beginning of each date to convert it to a text format. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub ConvertDates()
Dim cell as Range for each cell in selection cell.value = "'" & cell.Text cell.Numberformat = "General" Next End Sub select the cells to convert and run the macro. -- Regards, Tom Ogilvy "airedale girl" wrote: My worksheet contains several thousand records in which I have 3 columns with date values. I need to know how to write a macro that would add a tick mark to the beginning of each date to convert it to a text format. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - convert dates to text but appear as a date format | Excel Discussion (Misc queries) | |||
How do I write a formula to convert numbers to written text? | Excel Worksheet Functions | |||
Macro to convert text to date | Excel Worksheet Functions | |||
How do I convert a number formated as a date to text in Excel? | Excel Discussion (Misc queries) | |||
Set Excel to not automatically convert text to date | Excel Programming |