ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to delete a cell using VBA? (https://www.excelbanter.com/excel-programming/309728-how-delete-cell-using-vba.html)

Ricky

How to delete a cell using VBA?
 
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

N10

How to delete a cell using VBA?
 
Range("A1").Select
Selection.Clear

N10 :)

"Ricky" wrote in message
...
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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004



No Name

How to delete a cell using VBA?
 
Hi,
Try cells(2,2).clear

This will clear cell B2 of content, format comment, etc.


-----Original Message-----
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
.


Dave Peterson[_3_]

How to delete a cell using VBA?
 
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.

Ricky wrote:

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


--

Dave Peterson


Peter Huang

How to delete a cell using VBA?
 
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.



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

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