What you suggest will work and is very straight-forward. But the OP fears a
user over-writing the data (or formulae) in the cells.
A combined approach of entering the links with Workbook_Open() is perfect:
1. the links will always be re-entered at open
2. the user will have the opportunity to refresh the data.

Signature
Gary's Student
> Why not just put formulas in those cells that retrieve the values from the
> closed workbooks?
[quoted text clipped - 30 lines]
> > >
> > >REMEMBER workbook code, not a standard module.
Dave Peterson - 02 Nov 2006 22:43 GMT
Or lock those cells with the formulas (and unlock the cells that can be changed)
and then protect the worksheet.
To the OP: There's lots of things that can't be done on protected
worksheets--you may want to test to see if this works for you.
> What you suggest will work and is very straight-forward. But the OP fears a
> user over-writing the data (or formulae) in the cells.
[quoted text clipped - 44 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
µ - 03 Nov 2006 18:16 GMT
This looks like heaven to me.. But i don't understand ;-)
You say that a combination of this:
> > >Private Sub Workbook_Open()
> > >Sheets("starron").Activate
[quoted text clipped - 4 lines]
> > >Cells(5, 1) = 88
> > >End Sub
And replace the standard values with a link to the source data in the
other spreadsheet is possible?
I have tried several things but nothing works :-(
Note that i'm just an amateur.
Lets say my source data is in a $A$4 in c:\excelsheets\source.xls
I got something like this:
Private Sub Workbook_Open()
Sheets("Blad1").Activate
Cells(1, 1) = "c:\excelsheets\[source.xls]Blad4"!$A$4
End Sub
This doesn't work..
BTW: the starron is the name of the sheet isn't it?
I named it "Blad1" because that is the standard name for sheets in my
language pack.
Thanks in advance!
>What you suggest will work and is very straight-forward. But the OP fears a
>user over-writing the data (or formulae) in the cells.
[quoted text clipped - 3 lines]
>1. the links will always be re-entered at open
>2. the user will have the opportunity to refresh the data.
Dave Peterson - 03 Nov 2006 19:56 GMT
Maybe something like:
Cells(1, 1).formula = "=c:\excelsheets\[source.xls]Blad4!$A$4"
I'd create the formula manually with source.xls open and then close source.xls
and steal the formula from the cell.
> This looks like heaven to me.. But i don't understand ;-)
>
[quoted text clipped - 37 lines]
> >1. the links will always be re-entered at open
> >2. the user will have the opportunity to refresh the data.

Signature
Dave Peterson
µ - 03 Nov 2006 22:55 GMT
I did the follow, but it didn't work :-(
Private Sub Workbook_Open()
Sheets("Blad1").Activate
Cells(1, 1).Formula = "=c:\excelsheets\[source.xls]Blad4!$A$4"
End Sub
>Maybe something like:
>
[quoted text clipped - 44 lines]
>> >1. the links will always be re-entered at open
>> >2. the user will have the opportunity to refresh the data.
Dave Peterson - 04 Nov 2006 00:41 GMT
Did you try doing it manually to get the correct formula?
cells(1,1).formula = "='C:\excelsheets\[source.xls]blad4'!$A$4"
might work better.
> I did the follow, but it didn't work :-(
>
[quoted text clipped - 51 lines]
> >> >1. the links will always be re-entered at open
> >> >2. the user will have the opportunity to refresh the data.

Signature
Dave Peterson
µ - 04 Nov 2006 12:44 GMT
Yes, yes, yes, yes yeeeessssssssssssss!
Thanks a lot, this works fine!
You are great!!!
>Did you try doing it manually to get the correct formula?
>
>cells(1,1).formula = "='C:\excelsheets\[source.xls]blad4'!$A$4"
>
>might work better.