Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default ersing one letter in a cell

Hi,

Can somebody tell me how I can erase the first letter in i cell? How do I
write that code?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default ersing one letter in a cell


With code, use

Dim S1 As String
Dim S2 As String
S1 = Range("A1").Text
S2 = Mid(S1,2)

Or, with a formula,
=MID(A1,2,LEN(A1))

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Wed, 28 Jan 2009 06:04:01 -0800, Ksenija
wrote:

Hi,

Can somebody tell me how I can erase the first letter in i cell? How do I
write that code?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default ersing one letter in a cell

Hi again,

it's not working.. maybe I formulated my question badly. I have a cell in
wich it written <6. I want to write a code that takes away "<"..






"Chip Pearson" skrev:


With code, use

Dim S1 As String
Dim S2 As String
S1 = Range("A1").Text
S2 = Mid(S1,2)

Or, with a formula,
=MID(A1,2,LEN(A1))

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Wed, 28 Jan 2009 06:04:01 -0800, Ksenija
wrote:

Hi,

Can somebody tell me how I can erase the first letter in i cell? How do I
write that code?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default ersing one letter in a cell


Just add

Range("A1").Value = S2

after the S2 = Mid(..) line.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Wed, 28 Jan 2009 06:35:01 -0800, Ksenija
wrote:

Hi again,

it's not working.. maybe I formulated my question badly. I have a cell in
wich it written <6. I want to write a code that takes away "<"..






"Chip Pearson" skrev:


With code, use

Dim S1 As String
Dim S2 As String
S1 = Range("A1").Text
S2 = Mid(S1,2)

Or, with a formula,
=MID(A1,2,LEN(A1))

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Wed, 28 Jan 2009 06:04:01 -0800, Ksenija
wrote:

Hi,

Can somebody tell me how I can erase the first letter in i cell? How do I
write that code?

Thanks


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
How to make First letter of the cell in capital letter Irshad Alam Excel Programming 17 September 7th 08 04:14 PM
New Validation option to format 1st letter as Capital letter Jeff Excel Discussion (Misc queries) 5 July 13th 06 05:11 AM
column header changed from letter to number, how return to letter Ron Excel Discussion (Misc queries) 2 May 9th 05 08:34 PM
if a cell = a particular letter or even contains that letter Brian Excel Worksheet Functions 3 February 28th 05 05:58 AM
press letter and go 2 entry begin w letter in data validation drop MCP Excel Programming 1 August 28th 04 05:07 PM


All times are GMT +1. The time now is 11:24 AM.

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

About Us

"It's about Microsoft Excel"