Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create list in excel using qtp
#1
Not Solved Question 
AM using following code snippet
Code:
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="a,b,c"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
But am getting error Expression expected on line 2 ie is on Add Type. But after removing ":" no error is displayed. But while execution runtime error is occuirng which says: Syntax error.
Will appreciate the response on this.
Thanks.
Reply


Messages In This Thread
How to create list in excel using qtp - by Charanpreet - 04-08-2011, 05:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to create List box in excel sheet at Run time with values yes No JACKSPARROW 0 1,696 01-17-2017, 11:05 AM
Last Post: JACKSPARROW
  Compare second web list value according to the first web list value roselin6 1 2,823 10-07-2015, 09:14 PM
Last Post: supputuri
  QTP: WebEdit : How to check if values in list are disabled. katdean 4 8,493 07-27-2011, 08:52 AM
Last Post: rajpes
  What is the difference between Description.Create() and Description.Create? njnirmal 1 6,392 07-31-2009, 05:24 PM
Last Post: Saket
  How to create testcases with VB script in QTP martin 1 3,055 12-02-2008, 10:07 PM
Last Post: roxer

Forum Jump:


Users browsing this thread: 1 Guest(s)