View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Fenwick Rob Fenwick is offline
external usenet poster
 
Posts: 2
Default Type Mismatch Error in Excel VB on RowIndex

I get an error on the last line of the below snipit
Type Mismatch. I'm doing a for loop and want to
use the variables StartRow and Endrow

Any help would be greatly appreciated.
Thanks in Advance

--------
Dim StartRow As Integer
Dim EndRow As Integer

StartRow = 1
EndRow = StartRow + 3

Sheets("Master").Select
Rows("1:4").Select 'STATIC version of what I want
Rows("StartRow:EndRow").Select ' Dynamic vers of it



*** Sent via Developersdex http://www.developersdex.com ***