Hi
Replace the following lines
withCode:UniqueHeaders Application.Index(d, 1, 0) For r = 2 To UBound(d, 1) 'skips header
Code:UniqueHeaders Application.Index(d, 2, 0)'second row holds the header For r = 3 To UBound(d, 1) 'skips header
Hi
Replace the following lines
withCode:UniqueHeaders Application.Index(d, 1, 0) For r = 2 To UBound(d, 1) 'skips header
Code:UniqueHeaders Application.Index(d, 2, 0)'second row holds the header For r = 3 To UBound(d, 1) 'skips header
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
Hi
Thanks for the reply & your help
When activating the macro, it now comes up with run time error 9 "subscript out of range" and the folowing code is highlighted
k(n, j) = d(r, c)
It would be appreciated if you would amend your code and advise accordingly
Bookmarks