VBA JOIN XL97 + thread expanded Table-It & XL97

erik.van.geit

MrExcel MVP
Joined
Feb 1, 2003
Messages
17,832
Hi, gurus,

JOIN is not available in XL97
a workaround is to loop
or is there something better ?
Code:
Option Explicit

Sub test()

Dim arr(10) As Variant
Dim i As Long
Dim txt As String

    For i = 1 To 10
    arr(i) = i
    Next i
    
On Error Resume Next
MsgBox "...." & Join(arr, vbLf) & "....", 64, "EXCEL 2000 +"

    For i = 1 To 10
    txt = txt & vbLf & arr(i)
    Next i
    
MsgBox "...." & txt & "....", 64, "EXCEL 97"

End Sub
I didn't find much documentation on this.
Can you point me to some links or do you know a better workaround ?

kind regards,
Erik
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Thanks for the reply Erik, I didn't have chance to check your suggestion at work (Can you believe they kept me working???), I'm now at home where I have XP. I'll have to wait till Monday to try it. I'll repost then.
Cheers
 
Upvote 0
Hi Erik
Back again. I've tried your suggestion above and get the same error with a simple formula, the debug shows the hang on the following line, I have no clue what it doesn't like.

If arr1(i, j) <> vbNullString And arr2(i, j) <> 1 Then

Is that any help? Incidentally, that was using the formulas only Table-It
Cheers
 
Upvote 0
please send me by email
the range you want to work with (change background color)

when you are in debugmode what are the values of
arr1(i, j) & arr2(i, j)
(hover with mouse over cells to see what they are)

let's hope to find it :)
Erik
 
Upvote 0

Forum statistics

Threads
1,214,569
Messages
6,120,286
Members
448,953
Latest member
Dutchie_1

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