Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / August 2008

Tip: Looking for answers? Try searching our database.

Replacing Contents in Cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tangier - 29 Aug 2008 21:50 GMT
Within my module, I would like to replace the word

      Cells.Replace What:="0", Replacement:="No Spouse",
LookAt:=xlPart _
       , SearchOrder:=xlByRows, MatchCase:=False,
SearchFormat:=False, _
       ReplaceFormat:=False

However when I do this, wherever there is a zero, I see "No Spouse" so
for the number 104, I see 1NoSpouse4

How do I specify only 0, instead of a number that may contain 0. thanx
Peo Sjoblom - 29 Aug 2008 22:02 GMT
Change this part

LookAt:=xlPart

to this

LookAt:=xlWhole

Signature

Regards,

Peo Sjoblom

> Within my module, I would like to replace the word
>
[quoted text clipped - 8 lines]
>
> How do I specify only 0, instead of a number that may contain 0. thanx
Tangier - 29 Aug 2008 22:16 GMT
> Change this part
>
[quoted text clipped - 24 lines]
>
> - Show quoted text -

THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.