Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Select multiple but non sequential cells relative to a particular

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 23 Jan 2008 11:49 GMT
Hi Folks,

I need to be able to Select a number of different cells and copy them.
They are non sequential.
BUT
I need to select them relative to another cell.

I'm using a case statement to say if  b3 = 1 then copy cells G, I & K on
that same row. I can't be specific with the row number as I need to repeat
this process on multiple lines.

Any ideas??

Cheers
Joel - 23 Jan 2008 13:23 GMT
You can do something like this

MyRow = Range("B3").Row
cells(MyRow,"G").copy
cells(MyRow,"I").copy
cells(MyRow,"K").copy

> Hi Folks,
>
[quoted text clipped - 10 lines]
>
> Cheers
John - 23 Jan 2008 14:01 GMT
Yes used something very similar.
Works spot on.
Cheers

> You can do something like this
>
[quoted text clipped - 17 lines]
> >
> > Cheers
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.