Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro Help
I'd like to be able to place my cursor in a cell and run a macro that selects
that cell, plus 2 additional cells to the right (in the same row) and move all three cells up one row. (basically a cut and paste). Easily possible??? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro Help
Below are two options. The first only transfers values (ignores formatting)
and clears the contents of the source range. The second option does a cut and paste (includes formatting). Option 1:- Sub XXX() With ActiveCell.Resize(1, 3) .Offset(-1).Value = .Value .ClearContents End With End Sub Option 2:- Sub YYY() With ActiveCell .Resize(1, 3).Cut .Offset(-1) End With End Sub Regards, Greg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |