Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
ok, I have sheet of data in the following format: A B id1: thisisid1 id2: thisisid2 id3: thisisid3 id4: thisisid4 status: statusmsg1 statusmsg2 statusmsg3 statusmsg4 statusmsg5 statusmsg6 statusmsg7 id1: thisisid1 id2: thisisid2 id3: thisisid3 id4: thisisid4 status: statusmsg1 statusmsg2 etc... etc...continues in the same format... what i need to do is move the status messages from column a to column b... so it should look like the following: A B id1: thisisid1 id2: thisisid2 id3: thisisid3 id4: thisisid4 status: statusmsg1 statusmsg2 statusmsg3 statusmsg4 statusmsg5 statusmsg6 statusmsg7 id1: thisisid1 id2: thisisid2 id3: thisisid3 id4: thisisid4 status: statusmsg1 statusmsg2 etc....etc.... now I currently have the following code, it and it moves the first lot over, how do i get it to loop and get it to continue moving them over until they have all been moved? Sub move_status() Cells.Find(What:="status:", After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False).Activate Range(Worksheets(1).Cells(6, 1), Worksheets(1).Cells(12, 1)).Activate Selection.Cut Range(Worksheets(1).Cells(6, 2), Worksheets(1).Cells(12, 2)).Activate ActiveSheet.Paste End Sub any ideas?? many thanks, eadie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Referencing a cell even if its contents are moved moved/replaced | Excel Discussion (Misc queries) | |||
can I write an Excel macro to pause for data entry then continue? | Excel Discussion (Misc queries) | |||
Continue Formula if Data is Available | Excel Discussion (Misc queries) | |||
Can you pause a macro in excel to input data and continue? | Excel Discussion (Misc queries) | |||
Data Continue to next column? | Excel Discussion (Misc queries) |