Hi,
In my macro I added a CONCAT formula where cells in column A merge the contents of columns AG, W, and BT.
It runs fine on my PC with the CONCAT in column A showing the combined data, however when running on another PC I am met with the error '#NAME?'.
My code is as below:
Is anyone able to identify what part of my code needs to be changed to enable the macro to run across all PCs? Thanks.
In my macro I added a CONCAT formula where cells in column A merge the contents of columns AG, W, and BT.
It runs fine on my PC with the CONCAT in column A showing the combined data, however when running on another PC I am met with the error '#NAME?'.
My code is as below:
VBA Code:
Dim LastRow1 As Long
Dim formul3 As String
formul3 = "=CONCAT(AG1,"" "",W1,"" "",BT1)"
Range("A1:A" & Cells(Rows.Count, 1).End(xlUp).Row) = [formul3]
LastRow1 = Range("B" & Rows.Count).End(xlUp).Row
Range(Range("A1"), Range("A" & LastRow1)).FillDown
Is anyone able to identify what part of my code needs to be changed to enable the macro to run across all PCs? Thanks.