Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use the named range produced when you add the query table to
define the range to loop within: Sub way() Dim c As Range Dim bgn As Long Dim nd As Long For Each c In Sheet1.Range("UPS_CSV_EXPORT").Columns(1) 'adjust range as required c.Value = _ Mid(c.Text, 5, 2) & "/" & Mid(c.Text, 7, 2) & "/" & Mid (c.Text, 3, 2) Next c Sheet1.Range("UPS_CSV_EXPORT").Columns(1).NumberFo rmat = "mm/dd/yy;@" End Sub Cliff Edwards |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
scroll automatically as data is imported into a spreadsheet | Excel Discussion (Misc queries) | |||
automatically updating imported statistics | New Users to Excel | |||
Automatically modifying imported reports | Excel Discussion (Misc queries) | |||
How do I format a column to automatically make it a negative numbe | Excel Worksheet Functions | |||
How to automatically adapt column width with XML format? | Excel Programming |