Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() You need a simple If statement. I'm not sure of you columns so I'm using X,Y,Z. Change as required. I'm also using Column B to determin when the data is finised RowCount = 1 Do while Range("B" & RowCount) < "" if Range("Z" & Rowcount) = "" then Range("A" & RowCount) = Range("Z" & RowCount) & _ Range("X" & RowCount) & Range("Y" & RowCount) else Range("A" & RowCount) = Range("Y" & RowCount) & _ Range("X" & RowCount) end if RowCount = RowCount + 1 loop -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=168752 Microsoft Office Help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Specific sort order | Excel Discussion (Misc queries) | |||
Arrange sheet in specific order | Excel Programming | |||
Have 2 Macros run in a specific order...Can This Be Done | Excel Programming | |||
Have 2 Macros run in a specific order...Can This Be Done | Excel Programming | |||
print specific worksheets in specific order. | Excel Programming |