View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Selecting Non-Consecutive Variables

Union(Columns(ISBNCol), Columns(QtyCol)).Select

But you don't usually have to select a range to work with it.


Colin Vicary wrote:

Hello Experts!

I've written some code that prompts the user to indicate which column
two type of data appear in.

I then want to select those two columns, which may not be next to each
other, to copy to another sheet.

I've tried both versions below but neither work! Can anyone tell me
where I'm going wrong?

Columns(ISBNCol & "," & QtyCol).Select
Columns(ISBNCol, QtyCol).Select

Thanks

Colin

--
Colin Vicary
------------------------------------------------------------------------
Colin Vicary's Profile: http://www.excelforum.com/member.php...o&userid=10472
View this thread: http://www.excelforum.com/showthread...hreadid=507283


--

Dave Peterson