Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default 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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative copy/delete method needed KevHardy Excel Discussion (Misc queries) 2 February 11th 10 01:39 PM
Adding named range gives error "method range of object _Global failed " Gunnar Johansson Excel Programming 3 August 10th 04 01:54 PM
runtime error '1004' delete Method of Range Class Failed Tom Kennedy Excel Programming 0 April 14th 04 08:08 PM
runtime error '1004' delete Method of Range Class Failed Tom Ogilvy Excel Programming 0 April 1st 04 04:09 AM


All times are GMT +1. The time now is 08:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"