Auto drug macro - need help!

leshem

New Member
Joined
Sep 23, 2002
Messages
49
Hi all, good evening,

need help with Absulute linked fields and druging macro:
when fields are linked to another sheet in the same work book.
the main sheet , the one that we are reading into goes from cell to cell in a column: A1 A2 A3 A4 etc.
the linked sheet, the one that we are reading from goes from cell to cell : A1 A9 A17 A25 ets.
meaning: A1 gets A1
A2 gets A9
A3 gets A17
A4 gets A25.
now I want to add a row and copy the formulas. If I will do it as written in "insert_row" function as "Copy"
then the result will be : A5 gets A26.
the question: how do I continue the chain automatically when a row is added and the formulas ( include absulut linkage) are being copied?

Thanks in advance,
let me know if there is a solution, Please...
:smile:
 
On 2002-10-07 16:23, leshem wrote:
Hi all, good evening,

need help with Absulute linked fields and druging macro:
when fields are linked to another sheet in the same work book.
the main sheet , the one that we are reading into goes from cell to cell in a column: A1 A2 A3 A4 etc.
the linked sheet, the one that we are reading from goes from cell to cell : A1 A9 A17 A25 ets.
meaning: A1 gets A1
A2 gets A9
A3 gets A17
A4 gets A25.
now I want to add a row and copy the formulas. If I will do it as written in "insert_row" function as "Copy"
then the result will be : A5 gets A26.
the question: how do I continue the chain automatically when a row is added and the formulas ( include absulut linkage) are being copied?

Thanks in advance,
let me know if there is a solution, Please...
:smile:

The best way around this is by using named ranges instead of absolute references.

Insert | Name | Define

Then Hyperlinks / Linked files will automatically update even when the files are not open.

:smile:
 
Upvote 0
Hi,
what you've said is new to me, I dont know how to use this option you suggested.
but I need to stick with the absulute linkage . also, the cell will need the update of a linkage only when a new row is added to the table and should get the formulas of the previous row, relatively.

do you have a solution for thet?
I will be greatfull if you do, thanks!
 
Upvote 0
On 2002-10-08 03:59, leshem wrote:
Hi,
what you've said is new to me, I dont know how to use this option you suggested.
but I need to stick with the absulute linkage . also, the cell will need the update of a linkage only when a new row is added to the table and should get the formulas of the previous row, relatively.

do you have a solution for thet?
I will be greatfull if you do, thanks!

If you have book1 and you define a range (Insert |Name |Define) Cell B10 as Sales

Enter the value 100 in cell B10
Also Enter the value 100 in C10 as a check

open up a another workbook (Book2 ) you can say in cell B1

=Book1!Sales

In cell C1 enter

=[Book2.xls]Sheet1!$C$10 (since you are not using named ranges you must also specify the sheet)


If you now close Book 2

Then you insert 3 lines in Book 1 at line 4

Your sales Total will now be in B13.

Now Open up Book2, you will find that the sales Total in column B has moved to the new location and still shows 100, however cell the entry in column C will be looking at cell C10 which now contains zero.

Try this out a few more times when you are happy how it works use it in your live spreadsheet...This solution will work its just making sure you are confident using it,
If you cant get to grips send me an email (at the link below) of an extract of your spreadsheet and then I can reply with something for you.


Sean.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top