LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
dex
 
Posts: n/a
Default How to remove a character from the first index?

question: i recorded a macro that involves replacing the character "p"
in the part numbers after I run the macro with a nuLL string ""....but
i want the macro to replace the p only in the first index not anywhere
else in the part number: Here is part of my code.

Columns("A:A").Select
Selection.Find(What:="p", After:=ActiveCell, LookIn:=xlFormulas,
LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:= _
False, SearchFormat:=False).Activate
Selection.Replace What:="p", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

Hope this helps.

 
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
remove last character in a series of different length part #'s leo Excel Discussion (Misc queries) 2 December 12th 05 11:41 AM
Remove a particular character using formulas msetyon Excel Discussion (Misc queries) 2 December 1st 05 08:46 PM
Remove last character of text string Grant Excel Worksheet Functions 2 September 29th 05 05:17 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 09:56 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 12:25 AM


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

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"