Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
clear column content
Hi, How do I write a macro to delete the content of a column? Please let me know. THanks. -- owl527 ------------------------------------------------------------------------ owl527's Profile: http://www.excelforum.com/member.php...o&userid=20916 View this thread: http://www.excelforum.com/showthread...hreadid=546424 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
clear column content
Hi Owl,
Try: Columns(1).ClearContents '(Retain formatting) or Columns(1).Clear '(Clear contents and formatting) --- Regards, Norman "owl527" wrote in message ... Hi, How do I write a macro to delete the content of a column? Please let me know. THanks. -- owl527 ------------------------------------------------------------------------ owl527's Profile: http://www.excelforum.com/member.php...o&userid=20916 View this thread: http://www.excelforum.com/showthread...hreadid=546424 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
clear column content
Record a macro as you select and clear a column. You will end up with a macro similar to this Sub Macro1() Columns("D:D").Select Selection.ClearContents End Sub The abave macro can be changed to Sub Macro1() Columns("D:D").ClearContents End Su -- mudrake ----------------------------------------------------------------------- mudraker's Profile: http://www.excelforum.com/member.php...nfo&userid=247 View this thread: http://www.excelforum.com/showthread.php?threadid=54642 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to clear up useless content within worksheet? | Excel Discussion (Misc queries) | |||
Clear Cells Content | Excel Discussion (Misc queries) | |||
Clear an XML Map of all content | Excel Programming | |||
Clear Columns Content | Excel Programming | |||
Clear the content of a worksheet using VBA | Excel Programming |