LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default find and move data within a column

I'm trying to find a couple of items within a column and move them down
(either one or two positions depending on which item it's moving). I'm
having 2 problems, first if the item it's moving is the first value in
the column, it won't move down, and second, if the item to be moved is
the last item in the column, i need it to move to the top then move, so
the column is a continuos loop. Any ideas, here's what i have so far

Sub MoveDown()
[m1].Select
Cells.Find(what:="A", after:=ActiveCell, LookIn:=xlFormulas,
lookat:= _
xlPart, searchorder:=xlByColumns, searchdirection:=xlNext,
MatchCase:= _
False, searchformat:=False).Activate
Application.CutCopyMode = False
Selection.Cut
ActiveCell(r + 3).Select
Selection.Insert shift:=xlDown
[m1].Select
Cells.Find(what:="B", after:=ActiveCell, LookIn:=xlFormulas,
lookat:= _
xlPart, searchorder:=xlByColumns, searchdirection:=xlNext,
MatchCase:= _
False, searchformat:=False).Activate
Selection.Cut
ActiveCell(r + 4).Select
Selection.Insert shift:=xlDown
End Sub

 
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
Macro to find and move column andrea Excel Discussion (Misc queries) 1 October 9th 08 02:22 PM
Find last column, move formulas over, copy/paste data Mike R. Excel Worksheet Functions 0 September 19th 07 06:40 AM
Find and Move Data Stan Excel Discussion (Misc queries) 8 April 23rd 07 09:50 PM
how to move the cursor to column A after entering data column F tskaiser New Users to Excel 2 April 29th 06 02:28 PM
Move Cell in Column A to Column B when FIND juan Excel Programming 2 April 6th 04 10:20 PM


All times are GMT +1. The time now is 01:46 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"