Simple Macro

N

Nhoj.Nanyt

Hi all,

I have a basic script that loops through a range of data to copy and
paste into the front end of some calcs, then goes and copies the
results to a compilation sheet.

I have the navigation sorted, just using offset to get to the column
of data I want.

I can get the cursor where I want it, but I can't nut out how to
select a range of 8 cells under where the cursor ends up, copy and
paste into inputs.

Please help!
Cheers,
John.
 
D

Don Guillett Excel MVP

Hi all,

I have a basic script that loops through a range of data to copy and
paste into the front end of some calcs, then goes and copies the
results to a compilation sheet.

I have the navigation sorted, just using offset to get to the column
of data I want.

I can get the cursor where I want it, but I can't nut out how to
select a range of 8 cells under where the cursor ends up, copy and
paste into inputs.

Please help!
Cheers,
John.

As ALWAYS, post your code for comments
 
N

Nick H

Hi John,

Its rarely necessary to select the data you're manipulating but maybe
this will get you moving in the right direction...

Activecell.Resize(8,1).Select

or better still, something along these lines after declaring and
setting rngDestination...

Activecell.Resize(8,1).copy rngDestination

Br, Nick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top