ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   From String to Long (https://www.excelbanter.com/excel-programming/331045-string-long.html)

MD

From String to Long
 
Hello,

As I ask for the Application.Version ,I will get a string type variable
answer ("10.0" for excel XP). I would like to test if the user has a
version 10.0 or more. So I need to covert my String into a Long type of
variable in order to do a logic test... Or is there another way to it??

any suggestions?

regards,

MD



K Dales[_2_]

From String to Long
 
Just use Val(Application.Version)=10

"MD" wrote:

Hello,

As I ask for the Application.Version ,I will get a string type variable
answer ("10.0" for excel XP). I would like to test if the user has a
version 10.0 or more. So I need to covert my String into a Long type of
variable in order to do a logic test... Or is there another way to it??

any suggestions?

regards,

MD




Nick Hebb

From String to Long
 
CLng(Application.Version)


MD

From String to Long
 
I know.... I had a blonde moment just put Val !!! LOL

thanks

"MD" a écrit dans le message de news:
...
Hello,

As I ask for the Application.Version ,I will get a string type variable
answer ("10.0" for excel XP). I would like to test if the user has a
version 10.0 or more. So I need to covert my String into a Long type of
variable in order to do a logic test... Or is there another way to it??

any suggestions?

regards,

MD





All times are GMT +1. The time now is 01:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com