LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA - splitting name and re building in specific order


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Specific sort order RobM Excel Discussion (Misc queries) 5 July 12th 08 08:50 PM
Arrange sheet in specific order SITCFanTN Excel Programming 0 June 20th 06 01:24 AM
Have 2 Macros run in a specific order...Can This Be Done Dtown Dawg Excel Programming 2 June 7th 06 08:07 PM
Have 2 Macros run in a specific order...Can This Be Done Chip Pearson Excel Programming 0 June 7th 06 05:39 PM
print specific worksheets in specific order. jarvo Excel Programming 1 April 11th 06 11:05 AM


All times are GMT +1. The time now is 12:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"