ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   macro (https://www.excelbanter.com/excel-discussion-misc-queries/135934-macro.html)

Carrie

macro
 
Hi,

I need a macro that will go to a certain cell and clear the contents...
like go to B2 and clear out the information that is there.

in visual basic format is fine.

thanks

Illya Teideman

macro
 
Range("A1").Select
Selection.ClearContents

Where A1 is the cell you want to clear.

Hope that helps

"carrie" wrote:

Hi,

I need a macro that will go to a certain cell and clear the contents...
like go to B2 and clear out the information that is there.

in visual basic format is fine.

thanks


Don Guillett

macro
 
NO selections necessary..

range("b2").clearcontents

--
Don Guillett
SalesAid Software

"carrie" wrote in message
...
Hi,

I need a macro that will go to a certain cell and clear the contents...
like go to B2 and clear out the information that is there.

in visual basic format is fine.

thanks





All times are GMT +1. The time now is 05:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com