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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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