Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jim
This is spot-on, worked first time. Many thanks, you saved me and my colleagues hours of work, it's very much appreciated. Steve On Fri, 15 Jul 2005 10:28:04 -0700, "Jim Thomlinson" wrote: Give this a try... Sub MoveIt() Dim rngToSearch As Range Dim rngCurrent As Range Dim varTargetNumber As Variant varTargetNumber = "" Set rngToSearch = Range("B1", Range("B65536").End(xlUp).Offset(-1, 0)) If MsgBox("Don't forget to put a '* Total' at the foot of the column", _ vbOKCancel, "Reminder..") = vbCancel Then Exit Sub For Each rngCurrent In rngToSearch If IsNumeric(rngCurrent) Then varTargetNumber = rngCurrent.Value rngCurrent.Value = "" End If rngCurrent.Offset(0, -1).Value = varTargetNumber Next rngCurrent End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel macro needed - find and move data | Excel Discussion (Misc queries) | |||
Macro to find and move column | Excel Discussion (Misc queries) | |||
Find Numeric data | Excel Worksheet Functions | |||
Find and Return Numeric Label based on (Numeric Value) Criterion | Excel Worksheet Functions | |||
Macro - Find a value and then move down | Excel Discussion (Misc queries) |