Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get a Row Number of Excel
#3
Solved: 10 Years, 10 Months ago
You can try something like
Code:
xlCellTypeVisible =12
set oExcel  = createobject("excel.application")
oExcel.visible = true
oExcel.Workbooks.Open ("D:\My QTP\Excel Issue\AFIFLONG\AFIFLONG.xls")
Set sRange = oExcel.Range("A2", "A15").SpecialCells(xlCellTypeVisible)
For each cell in sRange
    msgbox cell.address
Next

I have concidered only the first column here which is already filtered. and assumed the first row is your header row and 15th row is the last used row in your excel
hope this will helps you.

Reply


Messages In This Thread
How to get a Row Number of Excel - by bfakruddin - 01-09-2010, 07:37 PM
RE: How to get a Row Number of Excel - by Saket - 01-12-2010, 10:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Searching for and selecting row in Datawindow zsl0009 0 2,688 08-04-2015, 01:02 AM
Last Post: zsl0009
  data sheet row count rushil 2 7,450 12-07-2012, 03:10 AM
Last Post: rushil
  Write Status of each row in DataTable dlaureano 2 3,285 11-29-2012, 05:53 PM
Last Post: dlaureano
  How to recognize table row and column siwani 4 4,849 04-05-2012, 05:06 PM
Last Post: verma.vik6
  How to count a repeated number in number in particular range gollsrin 1 3,442 04-28-2011, 11:41 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)