Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please help: I would like to change the hard coded 10 in the for loop to a
variable that represents the last column in the sheet. Sub Macro1() Worksheets(1).Activate For i = 1 To 10 Worksheets(1)Columns(i).Select Selection.TextToColumns , DataType:=xlFixedWidth, _ FieldInfo:=Array(Array(0, 2), Array(20, 1)), TrailingMinusNumbers:=True ActiveCell.Offset(columnOffset:=1).Select Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stop excel from dropping the 0 in the beginning of a number? | Setting up and Configuration of Excel | |||
Stop Excel Removing Zero at beginning of number | Excel Discussion (Misc queries) | |||
Stop Excel from dropping the 0 in the beginning of a number | Setting up and Configuration of Excel | |||
need enter key to move to the next column beginning | Excel Worksheet Functions | |||
Add a alphabetic character to the beginning of an entire column of | Excel Discussion (Misc queries) |