Prev: Getting the next higer value with Vlookup - True
Next: importing multiple text files into Excel with corresponding fi
From: joel on 3 Feb 2010 08:19 The count method will not be accurate unless you offset the count by the the start row number being 2. Count is 100 your last row will be 2 + (100 - 1) = 101. this statment is probably giving you the error Range("A2:A & Range("Count")").Select the correct way of writing this is Range("A2:A" & Range("Count").Count).Select I assume that your named range "Count" is a range of cells. -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/showthread.php?t=175897 [url="http://www.thecodecage.com"]Microsoft Office Help[/url] |