My Excel sheet has multiple used ranges. I want to copy each range value and concatenate them. What I did is
Set tempRange = Union(SrcWkb.Worksheets("mysheet").Range("F1:H1"), SrcWkb.Worksheets("mysheet").Range("I1:J1"), SrcWkb.Worksheets("NWP").Range("K1:L1"))
For Each eachRange In tempRange
tempString = tempString & eachRange & "/"
MsgBox tempString
Next eachRange
I want to copy the value in merged cells F1:H1 and concatenate a “/” and value from I1:J1 (also merged) and K1 to L1. However, Excel throws “subscript out of range” error. How could I achieve this?

It is not quite clear from your original post what output you need. Here is one option which may help you get started:
Updated Post
Dealing with merged ranges can be tricky. For example, the merged range
F1:H1has value 36M. To access the value you have to refer to the first cell in the merged range. Example:Given this you can concatenate the values by using the rowindex
(1)of the range: