ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Range.delete method (https://www.excelbanter.com/excel-programming/311659-range-delete-method.html)

Touk

Range.delete method
 
Hi, I have a list of numbers about 6 characters in length
listed in a spreadsheet. I would like to delete the first
2 numbers that appear in the cell eg (217000 I want to
delete "21" so that only 7000 appears in the cell). Am I
able to use the Range.delete method to do this in VBA or
is there another way I can do this? After this is done I
can then easily filter that list. Please advise the
easiest way to do this.

Myrna Larson

Range.delete method
 


For Each Cell In Selection
x = Cell.Text
Cell.Value = CDbl(Mid$(x, 3))
Next Cell



On Mon, 27 Sep 2004 21:51:11 -0700, "Touk" wrote:

Hi, I have a list of numbers about 6 characters in length
listed in a spreadsheet. I would like to delete the first
2 numbers that appear in the cell eg (217000 I want to
delete "21" so that only 7000 appears in the cell). Am I
able to use the Range.delete method to do this in VBA or
is there another way I can do this? After this is done I
can then easily filter that list. Please advise the
easiest way to do this.




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

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