Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default VBA 97 does noet have Replace: anything similar ?

I have som code that includes this piece of work:

Beginadres = Replace(Cells(Range("RyInd").Value, 2).Address, "$", "")

In short: I need to store the address of the cell found as a string without
the "$"-signes.

Unfortunately I was not thinking right: I wrote this code in VBA/Excel2003
and it must run in VBA/Excel 1997 (at work, soon to become 2000, but still).
Guess what, it didn't run... How do I work around this efficiently ?

Many thanks,

Peter


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default VBA 97 does noet have Replace: anything similar ?

Hi
one way:
use
application.worksheetfunction.substitute(....)

or see:
http://www.dicks-blog.com/excel/vba_...ary/index.html
and search for Replace97


--
Regards
Frank Kabel
Frankfurt, Germany


Peter wrote:
I have som code that includes this piece of work:

Beginadres = Replace(Cells(Range("RyInd").Value, 2).Address, "$",
"")

In short: I need to store the address of the cell found as a string
without the "$"-signes.

Unfortunately I was not thinking right: I wrote this code in
VBA/Excel2003 and it must run in VBA/Excel 1997 (at work, soon to
become 2000, but still). Guess what, it didn't run... How do I work
around this efficiently ?

Many thanks,

Peter


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
Find and Replace - Replace with Blank Space Studebaker Excel Discussion (Misc queries) 4 April 3rd 23 10:55 AM
Similar nos. tofimoon4 New Users to Excel 3 December 18th 08 04:20 PM
Can I replace a ' at the beginning of a text cell using Replace Hilde Excel Discussion (Misc queries) 4 September 10th 07 06:22 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
How can I use replace(alt+H) for mutiple items needing replace Gery Excel Worksheet Functions 1 June 15th 05 05:51 PM


All times are GMT +1. The time now is 09:29 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"