Excel.Range

  • Thread starter Thread starter Guest
  • Start date Start date
Post your question to an Excel newsgroup.
I know a little about Excel but the way you stated your question baffles me.
Maybe you need to also state it in a different manner.
 
i am sorry i mean : total rows.
The code is in vb:

Set xlApp = CreateObject("Excel.Application")
xlApp.DisplayAlerts = False
Set xlWkb = xlApp.Workbooks.Open("c:\test.xls")
Set xlSht = xlWkb.Sheets(1)
Set xlRng = xlSht.Cells(1, 1)

thanks
 
the answer is:
Dim v_totalrows As Integer
v_totalrows = ActiveSheet.UsedRange.Rows.count
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top