> It is not often that qualifers/modifiers can be placed in more than one
> location in VBA.
But that doesn't make them the same at all, ie the code to do or to return
same.
That particularly applies to the two lines of code you posted, I'm not sure
if you read what I tried to explain earlier.
Unless you have total control over your sheet, and/or good error handling,
your choice of code looks prone to problems.
Regards,
Peter T
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks, Dave, I did forget to include "Set" in my example but OK in code.
>
> Jim & Peter, my choice was
wks.Range("A2:F100").SpecialCells(xlCellTypeVisible).Resize(, 1)
> as it logically went from largest to smallest data sets.
>
> It is not often that qualifers/modifiers can be placed in more than one
location in VBA.
>
> Thanks EagleOne
>
> (E-Mail Removed) wrote:
>
> >2003/2007
> >
> >Both lines do not fail:
> >
> >myRange = wks.Range("A2:F100").Resize(,
1).SpecialCells(xlCellTypeVisible)
> >
> >-OR-
> >
> >myRange = wks.Range("A2:F100").SpecialCells(xlCellTypeVisible).Resize(,
1)
> >
> >Which is best and a little bit as to why
> >
> >TIA EagleOne