+ Reply to Thread
Results 1 to 4 of 4

From String to Long

  1. #1
    MD
    Guest

    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. #2
    K Dales
    Guest

    RE: 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. #3
    Nick Hebb
    Guest

    Re: From String to Long

    CLng(Application.Version)


  4. #4
    MD
    Guest

    Re: From String to Long

    I know.... I had a blonde moment just put Val !!! LOL

    thanks

    "MD" <demers_michelREMOVE@ifrance.commm> a écrit dans le message de news:
    j1_oe.36405$Ab4.446720@weber.videotron.net...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1