Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

selecting part of a row from an activecell

Status
Not open for further replies.

Trident1

Technical User
May 24, 2005
13
GB
I've written a macro to find an individuals name in a full column of names, from a normal type of user/password type entry.

Having found the name in the column, I want to copy the information contained in the six cells to the right of what is now the activecell, and paste it in another worksheet.

I have tried the offset function but this just copies a single cell.

It didn't appear to be that hard when I started!!

Anyone....?????
 
Hi Trident1,

You need to resize the range ..
Code:
[blue]ActiveCell.Offset(, 1).Resize(1, 6).Copy [i]YourOtherSheetTargetRange[/i][/blue]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top