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 / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Problem in WITH/END WITH code snippet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hash@example.org - 21 Jan 2006 13:55 GMT
Gang -

In set range r this code works:

With r
  .formula = .value
End With

This doesn't:

With r
  .formula = vba.replace(.value,chr(160),chr(32),1)
End With

What am I missing?

Thanks in advance.
...best, Hash
Toppers - 21 Jan 2006 14:44 GMT
Is this what you want?

For Each cell In r
  cell.Value = Replace(cell.Value, chr(160), chr(32), 1)
Next

> Gang -
>
[quoted text clipped - 14 lines]
> Thanks in advance.
> ....best, Hash
Toppers - 21 Jan 2006 14:59 GMT
rowno = Selection.Find("123").Row

> Gang -
>
[quoted text clipped - 14 lines]
> Thanks in advance.
> ....best, Hash
 
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.