Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IF statement
#2
Solved: 11 Years, 8 Months, 1 Week ago
Code:
dim rep_name
rep_name= DataTable("xxx","yyy")

If rep_name = "Fleet Invoice and Details" Then
   ...
End If

where xxx= column name, yyy=sheet name

Other way: use Select Case Statement
Select Case rep_name
   Case "All Listed Invoices"
         ...
   Case "Fleet Invoice and Details"
         ...
   Case Else
         ...
End Select
Reply


Messages In This Thread
IF statement - by mahadevan.swamy - 10-01-2008, 01:35 AM
RE: IF statement - by stevol - 10-01-2008, 07:34 PM
RE: IF statement - by ssping - 10-06-2008, 11:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Executing statement and commiting statement via qtp unbeliever 6 21,097 01-07-2010, 07:11 PM
Last Post: unbeliever

Forum Jump:


Users browsing this thread: