Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Very quick question I hope.
I have a macro in which the following instruction appears: Selection.Clear The only problem is that everything is cleared, but in fact I want the formatting of the cell to remain (for example, the borders, number formatting, etc.). If anyone can tell me how to adapt the instruction so that formatting remain, that would be much appreciated. Thanks Mike |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use ClearContents instead of Clear.
-- Vasant "Mike" wrote in message ... Very quick question I hope. I have a macro in which the following instruction appears: Selection.Clear The only problem is that everything is cleared, but in fact I want the formatting of the cell to remain (for example, the borders, number formatting, etc.). If anyone can tell me how to adapt the instruction so that formatting remain, that would be much appreciated. Thanks Mike |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Cheers
Mike "Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message ... Use ClearContents instead of Clear. -- Vasant "Mike" wrote in message ... Very quick question I hope. I have a macro in which the following instruction appears: Selection.Clear The only problem is that everything is cleared, but in fact I want the formatting of the cell to remain (for example, the borders, number formatting, etc.). If anyone can tell me how to adapt the instruction so that formatting remain, that would be much appreciated. Thanks Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Transfer a name from one cell to another but leave clear if clear? | Excel Worksheet Functions | |||
What Instruction? | Excel Discussion (Misc queries) | |||
clear the clear the web page email attachment lines | Excel Discussion (Misc queries) | |||
How do I delete an instruction box? | Excel Worksheet Functions | |||
BAR CODE Instruction | Excel Programming |