Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and Replace - Replace with Blank Space | Excel Discussion (Misc queries) | |||
Similar nos. | New Users to Excel | |||
Can I replace a ' at the beginning of a text cell using Replace | Excel Discussion (Misc queries) | |||
find and replace - replace data in rows to separated by commas | Excel Worksheet Functions | |||
How can I use replace(alt+H) for mutiple items needing replace | Excel Worksheet Functions |