directory window keeps opening up

almagg

Well-known Member
Joined
Aug 21, 2002
Messages
705
i am linking cells between workbooks.

when i paste the directory(?) window opens up wanting me to select the correct file. like it doesn't know exactly which file i am linking.

this is what i paste.

='[2007 Department Expense Summary - 10018.xls]Summary'!D24

then the window opens up and i have to manually select the xls file that is in the brackets.

i dunno.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi,

assuming your filename is
"2007 Department Expense Summary - 10018"
this file could be anywhere on your machine ...
specifiy the path within the formula
like this
='C:\WINDOWS\Desktop\[2007 Department Expense Summary - 10018.xls]Summary'!D24

kind regards,
Erik
 
Upvote 0
If the file being linked is not open, then Excel needs to know the FULL path in addition to the filename. So you have 2 options: 1) Have the linked file open when you perform the cop/paste function, or 2)copy/paste the full file/pathname only.
 
Upvote 0
i had thought of that and did put in the full path name:

'ActiveCell.Value = "='N:\IT Analysis Group\2007 Plan\Cost Center Files to Link\[2007 Department Expense Summary - 10018.xls]Summary' D12

and the window still opens up.
something is not right here :(
 
Upvote 0
I'm surprised that you are not getting a runtime error... the exclamation point seems to be missing in your code:

'ActiveCell.Value = "='N:\IT Analysis Group\2007 Plan\Cost Center Files to Link\[2007 Department Expense Summary - 10018.xls]Summary'!D12
 
Upvote 0
Hmm, can't seem to be able to duplicate your symptoms... I'm using this code:

Code:
ActiveCell.Value = "='U:\proceng\wip\test_procs\wpoga\oga\Administration\[N3OGA_Test_Tooling.xls]WPOGA Tooling'!$D$148"

The only difference I can see is your syntax error, but that throws a runtime error, not the symptom you are seeing...
 
Upvote 0
that did not do it

the window still pops up.

there is another possible solution.
initially i just did a

ActiveSheet. Paste Link:=True,

='[2007 Department Expense Summary Initial Submission - 10331.xls]Summary'!$D$12

but i need to remove the absolute reference symbol($) and i couldn't find anything in the help file.


what i did was get the source cell address using:

myaddress = ActiveCell.AddressLocal(RowAbsolute:=False, ColumnAbsolute:=False)

then in the target cell:
ActiveCell.Value = "='N:\IT Analysis Group\2007 Plan\Cost Center Files to Link\[2007 Department Expense Summary - 10331.xls]Summary'! & myaddress"

is there another way of removing the '$' ?
then i could use:

ActiveSheet. Paste Link:=True

thanks
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,485
Members
448,967
Latest member
visheshkotha

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