Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Amir
 
Posts: n/a
Default Find Replace Number Starting with 0

I am trying to find and replace a list of numbers that begin with zero. I
can't get replacement function in this code to display the zero.

Sub FindReplace()

Columns("J:J").Select
FindReplaceDPT 144, 141
FindReplaceDPT 147, 151
FindReplaceDPT 149, 151

End Sub

Sub FindReplaceDPT(Find, Replace)

Selection.Replace What:=Find, Replacement:=Replace, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

End Sub
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 do I find and replace a number with a minus sign in front? D.Sommer Excel Discussion (Misc queries) 1 November 7th 05 10:13 AM
Find & Replace in VB macro JackC Excel Discussion (Misc queries) 1 August 24th 05 09:22 PM
Can I use Find and Replace all with Hyperlinks? HandsOnManager Excel Discussion (Misc queries) 0 February 15th 05 07:39 PM
find replace cursor default to find box luffa Excel Discussion (Misc queries) 0 February 3rd 05 12:11 AM
How do I find the first value in a column less than a number? redeucer Excel Worksheet Functions 6 November 4th 04 09:59 PM


All times are GMT +1. The time now is 04:43 AM.

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"