Aug 8, 2003 #1 minnesota Computer Joined Aug 8, 2003 Messages 1 Location US In VBA how do I enhance this line in a macro to use the contents of cell A1 as the end of the range? Current: Rows("2:200".Select Desired: Rows("2:A1".Select I have guessed at various syntax and cannot get it to work. Thanks very much.
In VBA how do I enhance this line in a macro to use the contents of cell A1 as the end of the range? Current: Rows("2:200".Select Desired: Rows("2:A1".Select I have guessed at various syntax and cannot get it to work. Thanks very much.
Aug 9, 2003 #2 Mutt Chemical Joined Mar 7, 2003 Messages 96 Location ZA Can do somthineg like this : temp = Range("A1".Value Rows("2:" & temp).Select Mutt. Upvote 0 Downvote
Can do somthineg like this : temp = Range("A1".Value Rows("2:" & temp).Select Mutt.
Aug 19, 2003 #3 joerd Chemical Joined Sep 27, 2002 Messages 531 Location US All you need: Range([A2], Cells([A1].Value, 1)).EntireRow.Select Cheers, Joerd Please see FAQ731-376 for tips on how to make the best use of Eng-Tips. Upvote 0 Downvote
All you need: Range([A2], Cells([A1].Value, 1)).EntireRow.Select Cheers, Joerd Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.