Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Absolute vs. Relative Cell References

I have a relatively simple Excel sheet where a user will paste in 20 fields
of information from another application. Then to the right are 10 formula
fields that need to be copied down. Record count will change each time the
template is used. Is there a way to have a macro determine how far to copy
down and then do the copy down?

I wanted to do an xlDown to bottom of pasted area, then tell it to go over
one field, mark with an "x" to spot the bottom, then do a copydown to the
"x". Problem I am having is telling Excel to go over absolute 1 field
regardless of row location. Macro keeps recording actual cell address not
relative movement.

Can anyone help?

c-
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Absolute vs. Relative Cell References

Kind of unclear on the 10 formula fields. Are they all in row 1 starting
from B1 to K1? Is the pasted information in column A from A1 to A20 (
whatever the record count)? If the above is true then this will copy down
the formulas in B1:K1 to the last entry in column A:

Range("B1:K1", Range("A1").End(xlDown)).Offset(0, 1).FillDown

Mike F

"ChrisR" wrote in message
...
I have a relatively simple Excel sheet where a user will paste in 20 fields
of information from another application. Then to the right are 10 formula
fields that need to be copied down. Record count will change each time
the
template is used. Is there a way to have a macro determine how far to
copy
down and then do the copy down?

I wanted to do an xlDown to bottom of pasted area, then tell it to go over
one field, mark with an "x" to spot the bottom, then do a copydown to the
"x". Problem I am having is telling Excel to go over absolute 1 field
regardless of row location. Macro keeps recording actual cell address not
relative movement.

Can anyone help?

c-



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Absolute vs. Relative Cell References

Mike,

Thanks for the response. Did exactly what I wanted right out of the gate.
Never ceases to amaze me how many really bright people there are reading
these postings. I can only hope that I give back something close to what I
get from gents like yourself. Thanks again for the help!

c-

"Mike Fogleman" wrote in message
...
Kind of unclear on the 10 formula fields. Are they all in row 1 starting
from B1 to K1? Is the pasted information in column A from A1 to A20 (
whatever the record count)? If the above is true then this will copy down
the formulas in B1:K1 to the last entry in column A:

Range("B1:K1", Range("A1").End(xlDown)).Offset(0, 1).FillDown

Mike F

"ChrisR" wrote in message
...
I have a relatively simple Excel sheet where a user will paste in 20

fields
of information from another application. Then to the right are 10

formula
fields that need to be copied down. Record count will change each time
the
template is used. Is there a way to have a macro determine how far to
copy
down and then do the copy down?

I wanted to do an xlDown to bottom of pasted area, then tell it to go

over
one field, mark with an "x" to spot the bottom, then do a copydown to

the
"x". Problem I am having is telling Excel to go over absolute 1 field
regardless of row location. Macro keeps recording actual cell address

not
relative movement.

Can anyone help?

c-





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
Absolute and Relative Cell References Karen Excel Discussion (Misc queries) 1 April 1st 09 09:41 AM
convert relative cell references to absolute cell references via amacro? Dave F[_2_] Excel Discussion (Misc queries) 1 May 15th 08 04:43 PM
Copying formulas, relative and absolute cell references Garnet Excel Discussion (Misc queries) 3 February 22nd 07 08:51 AM
Relative (vs. Absolute) Cell References with macros Claude S. Weiller Excel Discussion (Misc queries) 1 August 3rd 06 08:56 PM
F4 key does not toggle relative/absolute cell references. java Excel Worksheet Functions 2 July 12th 05 09:53 PM


All times are GMT +1. The time now is 10:22 PM.

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"