Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default difficulty with conversion program


HI All,
I am trying to run this little program. It runs without any proble
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 I

--
sazi
-----------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...nfo&userid=635
View this thread: http://www.excelforum.com/showthread.php?threadid=39928

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default difficulty with conversion program

How about replacing the & characters with AND ?

RBS


"saziz" wrote in
message ...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default difficulty with conversion program


Thanks RBS That worked.
Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=399281

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
SUMPRODUCT Difficulty Pam[_3_] Excel Worksheet Functions 11 June 17th 09 10:13 PM
VLOOKUP Difficulty Serge Excel Discussion (Misc queries) 5 June 21st 06 02:50 AM
Difficulty with MOD operator when using Mod 1 Terry Holmes Excel Programming 5 April 27th 05 09:52 PM
IF Statement difficulty susan hayes Excel Worksheet Functions 3 November 2nd 04 09:46 PM
merging excel program with tdc finance program judy Excel Programming 0 November 5th 03 08:01 PM


All times are GMT +1. The time now is 04:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"