Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default How to check that a string is a valid formula ?

Hi,

How do you check in VBA code that a string is a valid formula ? Thanks.
--
Regards,
Adrian


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How to check that a string is a valid formula ?

Hi
try using Application.evaluate for this

--
Regards
Frank Kabel
Frankfurt, Germany


Adrian wrote:
Hi,

How do you check in VBA code that a string is a valid formula ?
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default How to check that a string is a valid formula ?

Hi,
Do you mind explaining in detail ?
Thanks.

--
Regards,
Adrian
"Frank Kabel" wrote in message
...
Hi
try using Application.evaluate for this

--
Regards
Frank Kabel
Frankfurt, Germany


Adrian wrote:
Hi,

How do you check in VBA code that a string is a valid formula ?
Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How to check that a string is a valid formula ?

Hi
e.g. try
msgbox application.evaluate("=A1+A2")

--
Regards
Frank Kabel
Frankfurt, Germany


Adrian wrote:
Hi,
Do you mind explaining in detail ?
Thanks.

Hi
try using Application.evaluate for this

--
Regards
Frank Kabel
Frankfurt, Germany


Adrian wrote:
Hi,

How do you check in VBA code that a string is a valid formula ?
Thanks.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default How to check that a string is a valid formula ?

Thanks.. :-)

--
Regards,
Kok Hsing
(Guoxing)
"Frank Kabel" wrote in message
...
Hi
e.g. try
msgbox application.evaluate("=A1+A2")

--
Regards
Frank Kabel
Frankfurt, Germany


Adrian wrote:
Hi,
Do you mind explaining in detail ?
Thanks.

Hi
try using Application.evaluate for this

--
Regards
Frank Kabel
Frankfurt, Germany


Adrian wrote:
Hi,

How do you check in VBA code that a string is a valid formula ?
Thanks.






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default How to check that a string is a valid formula ?

Depending on what you're doing you may also want to check
that the first character is an "="

Regards,
Peter


Hi
e.g. try
msgbox application.evaluate("=A1+A2")

--
Regards
Frank Kabel
Frankfurt, Germany


Adrian wrote:
Hi,
Do you mind explaining in detail ?
Thanks.

Hi
try using Application.evaluate for this

--
Regards
Frank Kabel
Frankfurt, Germany


Adrian wrote:
Hi,

How do you check in VBA code that a string is a

valid formula ?
Thanks.


.

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
Zero-Length string vs Zero (also a valid value) [email protected] Excel Worksheet Functions 2 January 24th 09 02:18 PM
Formula to check against a list of valid values Barb W[_2_] Excel Worksheet Functions 3 March 4th 08 06:51 PM
How to check valid Date value? hstijnen Excel Worksheet Functions 1 August 14th 06 01:25 PM
Valid SQL string Malcolm Agingwell Excel Discussion (Misc queries) 0 August 12th 05 11:00 AM
check for valid file pabs[_21_] Excel Programming 2 January 15th 04 06:52 AM


All times are GMT +1. The time now is 07:27 PM.

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"