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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting a group of Cells in a unknown row (Excell 2k)

Status
Not open for further replies.

apeoortje

Technical User
May 26, 2004
46
NL
I'm in the process of writting a macro to a number of cells into another workbook.

the only problem I'm having that the Macro I'm writing needs to find the row it's self before it able of copy the Data. What I need to do is to copy Cells on the Active row from A to D collumn. but I stuck!!

I can get to whole row, but don't just those cells

I was thinking something like this

bob = activecell.Row
range("A" & bob:"C" & bob).select

but that doesn't work

CAn anyone help me?
 
Hi apeoortje,

Almost there - the colon needs to be inside the quotes ..

Code:
[blue]Range("A" & bob [red]& ":[/red]C" & bob).select[/blue]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top