Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MD MD is offline
external usenet poster
 
Posts: 10
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default From String to Long

CLng(Application.Version)

  #4   Report Post  
Posted to microsoft.public.excel.programming
MD MD is offline
external usenet poster
 
Posts: 10
Default 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



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
Long string of IF formulas changetires Excel Discussion (Misc queries) 3 June 21st 06 08:59 PM
Get long value for a date string jerry chapman[_2_] Excel Programming 4 February 22nd 05 11:06 PM
Transposing a Long String carl Excel Worksheet Functions 2 January 3rd 05 02:55 PM
converting a string to long Ciar?n Excel Programming 1 October 28th 04 12:36 PM
Type mismatch? string 2 a long?? CAA[_2_] Excel Programming 4 December 9th 03 02:34 PM


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