B Bernie Deitrick Mar 14, 2005 #2 Bryan, Count of actually used rows: MsgBox ActiveSheet.UsedRange.Rows.Count Highest row number MsgBox Range("A1").SpecialCells(xlCellTypeLastCell).Row Usually the same, but not always.... HTH, Bernie MS Excel MVP
Bryan, Count of actually used rows: MsgBox ActiveSheet.UsedRange.Rows.Count Highest row number MsgBox Range("A1").SpecialCells(xlCellTypeLastCell).Row Usually the same, but not always.... HTH, Bernie MS Excel MVP
B Bob Phillips Mar 14, 2005 #3 Do you mean the number of rows in the usedrange, activesheet.usedrange.rows.count or specifically those rows that contain data? -- HTH RP (remove nothere from the email address if mailing direct)
Do you mean the number of rows in the usedrange, activesheet.usedrange.rows.count or specifically those rows that contain data? -- HTH RP (remove nothere from the email address if mailing direct)
B Bryan Dickerson Mar 14, 2005 #4 That works. Thanx! Bernie Deitrick said: Bryan, Count of actually used rows: MsgBox ActiveSheet.UsedRange.Rows.Count Highest row number MsgBox Range("A1").SpecialCells(xlCellTypeLastCell).Row Usually the same, but not always.... HTH, Bernie MS Excel MVP Click to expand...
That works. Thanx! Bernie Deitrick said: Bryan, Count of actually used rows: MsgBox ActiveSheet.UsedRange.Rows.Count Highest row number MsgBox Range("A1").SpecialCells(xlCellTypeLastCell).Row Usually the same, but not always.... HTH, Bernie MS Excel MVP Click to expand...