VBA type mismatch

JST013

Board Regular
Joined
Mar 11, 2015
Messages
74
The following code is giving me a type mismatch error...I am trying to update the links when a tab is activated by a user...this was working yesterday for me which is why its really strange. The linked workbooks on are a network share drive and I have access to both of them..

Workbook1 has links to Workbook2

Code:
Private Sub worksheet_activate()


    Application.ScreenUpdating = False
    
    linkarray = Workbooks("Workbook1.xlsm").LinkSources(xlExcelLinks)


[U][B]Workbooks("Workbook1.xlsm").OpenLinks linkarray(1), True, xlExcelLinks[/B][/U]
    
    Workbooks("Workbook2.xlsm").Close
    Application.ScreenUpdating = True
end sub
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
ok found my problem but why is this a problem....the problem was my links were within array formulas....what can I do about this?

Can links not normally be updated if they are in array formulas?
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,449
Members
449,160
Latest member
nikijon

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