S specs New Member Joined Oct 26, 2005 Messages 27 Nov 21, 2005 #1 Code: Dim rowStart As Integer Dim rowEnd As Integer rowStart = 2 rowEnd = 5 Rows.("rowStart:rowEnd").Select Can someone help me out with the Rows.("rowStart:rowEnd") im getting an error for that part.
Code: Dim rowStart As Integer Dim rowEnd As Integer rowStart = 2 rowEnd = 5 Rows.("rowStart:rowEnd").Select Can someone help me out with the Rows.("rowStart:rowEnd") im getting an error for that part.
Norie Well-known Member Joined Apr 28, 2004 Messages 76,088 Office Version 365 Platform Windows Nov 21, 2005 #2 Does this work? Code: Dim rowStart As Integer Dim rowEnd As Integer rowStart = 2 rowEnd = 5 Rows(rowStart & ":" & rowEnd).Select By the way why are you selecting a range? You don't actually need to select/activate ranges etc to work with them.
Does this work? Code: Dim rowStart As Integer Dim rowEnd As Integer rowStart = 2 rowEnd = 5 Rows(rowStart & ":" & rowEnd).Select By the way why are you selecting a range? You don't actually need to select/activate ranges etc to work with them.
S specs New Member Joined Oct 26, 2005 Messages 27 Nov 21, 2005 #3 Great it works. Thanks Norie. By the way why are you selecting a range? You don't actually need to select/activate ranges etc to work with them. Click to expand... The select is just an example. it supposed to be .Copy
Great it works. Thanks Norie. By the way why are you selecting a range? You don't actually need to select/activate ranges etc to work with them. Click to expand... The select is just an example. it supposed to be .Copy