Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default relative reference

1) I use a macro to copy a range of cells (k9:n9) on the
active worksheet.
2) I select the leftmost cell to which I want paste the 4
values (values only). It always starts in the same
column, but the row is always different. I can paste
without incident.

What I would like to do is make a macro that pastes to
that manually selected cell and then simply moves over 5
cells to the right. When I do this the code is
always 'Range ("E95")' or some such so regardless of the
row I am on... the macro always ends on E95.

What do I code so as to get a relative reference? Is it
an r1c1 function?

Thanks,
Duce
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default relative reference

Duce,

Maybe
Activecell.Offset(0,5) to designate 5 cells to the right.

--
sb
"Duce" wrote in message
...
1) I use a macro to copy a range of cells (k9:n9) on the
active worksheet.
2) I select the leftmost cell to which I want paste the 4
values (values only). It always starts in the same
column, but the row is always different. I can paste
without incident.

What I would like to do is make a macro that pastes to
that manually selected cell and then simply moves over 5
cells to the right. When I do this the code is
always 'Range ("E95")' or some such so regardless of the
row I am on... the macro always ends on E95.

What do I code so as to get a relative reference? Is it
an r1c1 function?

Thanks,
Duce



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative Reference help Barnej75 Excel Discussion (Misc queries) 4 July 3rd 07 02:21 AM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
relative reference Swannybuck Excel Discussion (Misc queries) 1 July 26th 06 09:28 PM
Relative Reference Hari Excel Discussion (Misc queries) 4 October 26th 05 02:00 AM
Relative Reference Barry Givens via OfficeKB.com Excel Discussion (Misc queries) 3 December 17th 04 07:31 PM


All times are GMT +1. The time now is 03:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"