LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional Statements not firing


Hello

I have the following code which I want to perform the cases I have
written (also I want to add another 5 or 6 similar cases to the list).
It seems that the cope runs and selects the range but does not fire the
condtion ie Market Convention is AUDJPY-within range
Could I please have some direction on what the problem seems to be (and
text is correct on the first case if I change to value it gives a
runtime error)

Sub TEST()
Dim rng1 As Range
Dim LASTROW As Integer


LASTROW = Range("A1").End(xlDown).Row

Set rng1 = Range("H1:h" & LASTROW)


Sheets("FXT Deals").Range("A1:AM" & LASTROW).Select


Select Case rng1.TEXT

Case "JPYAUD"


Range("AC1:AC" & LASTROW).Value = "Convention is
AUDJPY-within range"

Case "JPYEUR"

Range("AC1:AC" & LASTROW).Value = "Convention is
EURJPY-within range"

Case Else

Range("h1:h100").Value = " "

End Select



End Sub


--
Jimmylaki
------------------------------------------------------------------------
Jimmylaki's Profile: http://www.thecodecage.com/forumz/member.php?userid=768
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=133704

 
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
Conditional Statements dmaioran Excel Programming 3 July 14th 08 04:48 PM
Conditional Statements Help! Brian Excel Discussion (Misc queries) 1 April 8th 08 10:08 PM
Conditional statements james Excel Worksheet Functions 9 January 7th 08 03:07 PM
Conditional statements Jon Minken[_2_] Excel Programming 4 June 24th 04 11:02 PM
Conditional statements Mark Excel Programming 2 December 31st 03 09:38 PM


All times are GMT +1. The time now is 09:18 AM.

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"