+ Reply to Thread
Results 1 to 3 of 3

difficulty with conversion program

  1. #1
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    difficulty with conversion program

    HI All,
    I am trying to run this little program. It runs without any problem apparently, but do not put value in textbox2.
    Any help would be appreciated.
    Thanks
    Syed


    If ComboBox1.Value = "KG" & ComboBox2.Value = "Pounds" Then
    TextBox2.Value = Format(TextBox1.Value / 2.2046, "00.00")

    ElseIf ComboBox1.Value = "Pounds" & ComboBox2.Value = "KG" Then
    TextBox2.Value = Format(TextBox1.Value * 2.2046, "00.00")

    End If

  2. #2
    RB Smissaert
    Guest

    Re: difficulty with conversion program

    How about replacing the & characters with AND ?

    RBS


    "saziz" <[email protected]> wrote in
    message news:[email protected]...
    >
    > HI All,
    > I am trying to run this little program. It runs without any problem
    > apparently, but do not put value in textbox2.
    > Any help would be appreciated.
    > Thanks
    > Syed
    >
    >
    > If ComboBox1.Value = "KG" & ComboBox2.Value = "Pounds" Then
    > TextBox2.Value = Format(TextBox1.Value / 2.2046, "00.00")
    >
    > ElseIf ComboBox1.Value = "Pounds" & ComboBox2.Value = "KG" Then
    > TextBox2.Value = Format(TextBox1.Value * 2.2046, "00.00")
    >
    > End If
    >
    >
    > --
    > saziz
    > ------------------------------------------------------------------------
    > saziz's Profile:
    > http://www.excelforum.com/member.php...fo&userid=6350
    > View this thread: http://www.excelforum.com/showthread...hreadid=399281
    >



  3. #3
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241
    Thanks RBS That worked.
    Syed

+ 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