Hi all,
I'm trying to put the below code to VBA and send it to cell A2 but it won't work. I had a look on Google that its over 255 characters so tried to split the code into two variables but would still not work.
I've tried many things in the lines of below but would not work...
Any support is appreciated.
I'm trying to put the below code to VBA and send it to cell A2 but it won't work. I had a look on Google that its over 255 characters so tried to split the code into two variables but would still not work.
Code:
=IFERROR(INDEX('https://wels.sharepoint.com/sites/GroupSites7/blue/Talent/Shared Documents/[el.xlsx]formulationsTK'!$A:$BX,SMALL(IF('https://wels.sharepoint.com/sites/GroupSites7/blue/Talent/Shared Documents/[el.xlsx]formulationsTK'!$B:$B=filter, ROW('https://wels.sharepoint.com/sites/GroupSites7/blue/Talent/Shared Documents/[el.xlsx]formulationsTK'!$B:$B)),ROW(1:1)),COLUMN()),"")
I've tried many things in the lines of below but would not work...
Any support is appreciated.
Code:
Sub Macro1()
'
' Macro1 Macro
'
Dim x1 As String
Dim x2 As String
' range("a2").select
x1 = "=IFERROR(INDEX('https://wels.sharepoint.com/sites/GroupSites7/blue/Talent/Shared Documents/[el.xlsx]formulationsTK'!C1:C76,SMALL(IF('https://wels.sharepoint.com/sites/GroupSites7/blue/Talent/Shared Documents/"
x2 = "[el.xlsx]formulationsTK'!C2=filter, ROW('https://wels.sharepoint.com/sites/GroupSites7/blue/Talent/Shared Documents/[el.xlsx]formulationsTK'!C2)),ROW(R)),COLUMN()),"""")"
Selection.FormulaArray = _
x1 & x2
End Sub