Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default evalaute concatenation gives problems


Hi

My code has the statement MsgBox Evaluate("concatenate("a","b")")
which is failing, can you suggest the proper escape sequence so that
this executes.

MsgBox Evaluate("sum(5,6)") is working fine
but MsgBox Evaluate("concatenate("a","b")") is failing because of "
mismatch.. please let me kow that is the proper escape character to be
given there.


--
srinu1264
------------------------------------------------------------------------
srinu1264's Profile: http://www.excelforum.com/member.php...o&userid=34155
View this thread: http://www.excelforum.com/showthread...hreadid=539497

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default evalaute concatenation gives problems

msgbox evaluate("concatenate(""a"",""b"")")

--
Kind regards,

Niek Otten

"srinu1264" wrote in message
...
|
| Hi
|
| My code has the statement MsgBox Evaluate("concatenate("a","b")")
| which is failing, can you suggest the proper escape sequence so that
| this executes.
|
| MsgBox Evaluate("sum(5,6)") is working fine
| but MsgBox Evaluate("concatenate("a","b")") is failing because of "
| mismatch.. please let me kow that is the proper escape character to be
| given there.
|
|
| --
| srinu1264
| ------------------------------------------------------------------------
| srinu1264's Profile: http://www.excelforum.com/member.php...o&userid=34155
| View this thread: http://www.excelforum.com/showthread...hreadid=539497
|


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default evalaute concatenation gives problems


Actually I am interested in taking the formula from the cell and
evaluating it myself in the program

my Target.Formula returns =Concatenate("a","b")
as you said that I have to use evaluate("Concatenate(""a"",""b"")") ,
then I need to replace the " in the formula by ""

I tried to use replace (formula,""",""""), which I mean replace " to ""
in the formula but it reports an error. I want to know what is the
escape character to remove the meaning of " or anyother characters . In
JAva and other languages we have \ as the escape. What is the escape
character in VBA


--
srinu1264
------------------------------------------------------------------------
srinu1264's Profile: http://www.excelforum.com/member.php...o&userid=34155
View this thread: http://www.excelforum.com/showthread...hreadid=539497

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default evalaute concatenation gives problems

Assign your formula string to a variable and evaluate the variable. No need for extra quotes then.

--
Kind regards,

Niek Otten

"srinu1264" wrote in message
...
|
| Actually I am interested in taking the formula from the cell and
| evaluating it myself in the program
|
| my Target.Formula returns =Concatenate("a","b")
| as you said that I have to use evaluate("Concatenate(""a"",""b"")") ,
| then I need to replace the " in the formula by ""
|
| I tried to use replace (formula,""",""""), which I mean replace " to ""
| in the formula but it reports an error. I want to know what is the
| escape character to remove the meaning of " or anyother characters . In
| JAva and other languages we have \ as the escape. What is the escape
| character in VBA
|
|
| --
| srinu1264
| ------------------------------------------------------------------------
| srinu1264's Profile: http://www.excelforum.com/member.php...o&userid=34155
| View this thread: http://www.excelforum.com/showthread...hreadid=539497
|


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
Concatenation MichaelS Excel Discussion (Misc queries) 8 September 11th 08 07:54 AM
Concatenation orquidea Excel Discussion (Misc queries) 6 January 11th 08 07:19 PM
Concatenation Ken Excel Discussion (Misc queries) 1 April 12th 06 11:26 AM
Concatenation problems... hojo Excel Programming 2 January 3rd 06 06:49 PM
Concatenation Help Henry Excel Worksheet Functions 4 December 15th 04 08:21 PM


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