Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Replace(ActiveCell.Formula, "Round(","") not working as expected

2003

ActiveCell.Formula is =ROUND('1106'!C160,0)

I am attempting to remove "Round(" then in a second step
remove or truncate the ",0)". What I am after is the sheet and cell
reference
without the round function in the mix.

The challenge is that:
CellRef = Replace(ActiveCell.Formula, "Round(", "") does not replace
"Round(".
my guess is that XL does not want to remove "Round" as a function or
Replace only works for one character?

CellRef = Replace(ActiveCell.Formula, "R", "") works fine.

What is the issue that I am missing and/or what is the best solution?

TIA

EagleOne

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Replace(ActiveCell.Formula, "Round(","") not working as expected

The Replace function is case sensitive.

--
Jim
"Dennis" wrote in message
oups.com...
| 2003
|
| ActiveCell.Formula is =ROUND('1106'!C160,0)
|
| I am attempting to remove "Round(" then in a second step
| remove or truncate the ",0)". What I am after is the sheet and cell
| reference
| without the round function in the mix.
|
| The challenge is that:
| CellRef = Replace(ActiveCell.Formula, "Round(", "") does not replace
| "Round(".
| my guess is that XL does not want to remove "Round" as a function or
| Replace only works for one character?
|
| CellRef = Replace(ActiveCell.Formula, "R", "") works fine.
|
| What is the issue that I am missing and/or what is the best solution?
|
| TIA
|
| EagleOne
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Replace(ActiveCell.Formula, "Round(","") not working as expected

I should have remenbered that! Thanks Jim

EagleOne

On May 16, 9:54 am, "Jim Rech" wrote:
The Replace function is case sensitive.

--
Jim"Dennis" wrote in message

oups.com...
| 2003
|
| ActiveCell.Formula is =ROUND('1106'!C160,0)
|
| I am attempting to remove "Round(" then in a second step
| remove or truncate the ",0)". What I am after is the sheet and cell
| reference
| without the round function in the mix.
|
| The challenge is that:
| CellRef = Replace(ActiveCell.Formula, "Round(", "") does not replace
| "Round(".
| my guess is that XL does not want to remove "Round" as a function or
| Replace only works for one character?
|
| CellRef = Replace(ActiveCell.Formula, "R", "") works fine.
|
| What is the issue that I am missing and/or what is the best solution?
|
| TIA
|
| EagleOne
|



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Replace(ActiveCell.Formula, "Round(","") not working as expected

But there is a matchcase parm in the replace() method.

Jim Rech wrote:

The Replace function is case sensitive.

--
Jim
"Dennis" wrote in message
oups.com...
| 2003
|
| ActiveCell.Formula is =ROUND('1106'!C160,0)
|
| I am attempting to remove "Round(" then in a second step
| remove or truncate the ",0)". What I am after is the sheet and cell
| reference
| without the round function in the mix.
|
| The challenge is that:
| CellRef = Replace(ActiveCell.Formula, "Round(", "") does not replace
| "Round(".
| my guess is that XL does not want to remove "Round" as a function or
| Replace only works for one character?
|
| CellRef = Replace(ActiveCell.Formula, "R", "") works fine.
|
| What is the issue that I am missing and/or what is the best solution?
|
| TIA
|
| EagleOne
|


--

Dave Peterson
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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... Maria J-son[_2_] Excel Programming 2 March 5th 06 12:20 PM
Can you replace "TRUE" with " " in an exact formula? Sweetetc Excel Worksheet Functions 2 February 10th 06 01:11 PM


All times are GMT +1. The time now is 05:00 PM.

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"