Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Gary's Student,
That code should have given you an error when you tested it on a multi-cell selection. HTH, Bernie MS Excel MVP "Gary's Student" wrote in message ... Assuming you want to pre-pad selected cells with three spaces, try: Sub padit() Dim r As Range Set r = Selection r.Value = " " & r.Value End Sub -- Gary's Student "John Grossman" wrote: How do I do F2 - home - add 3 spaces and enter. Don't want it to carry over name I'm editing - each row different |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Recording simple macro | Excel Worksheet Functions | |||
Simple Hyperlink Macro | New Users to Excel | |||
How can I edit cell contents with a macro in Excel? | Excel Discussion (Misc queries) | |||
How can I edit cell contents with a macro in Excel? | Excel Discussion (Misc queries) | |||
Can't get simple macro to run | Excel Worksheet Functions |