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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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