How to delete a cell using VBA?

  • Thread starter Thread starter Ricky
  • Start date Start date
R

Ricky

Hi

I would like to know how to delete all content in a cell using VBA (not
just the value, but also Comment)

Thanks.

Ricky
 
Range("A1").Select
Selection.Clear

N10 :)

Ricky said:
Hi

I would like to know how to delete all content in a cell using VBA (not
just the value, but also Comment)

Thanks.

Ricky
 
Hi,
Try cells(2,2).clear

This will clear cell B2 of content, format comment, etc.
 
And if you only want to remove the content and the comment, you could record a
macro when you do it.

You'll see the code.
 
Hi Ricky,

If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top