Let me try that again...
So I'm trying to have the user enter:
=getpivotdata(Getdata(sheet2!$a$3,b1,b2,b3,b4,b5,b6,b7,b8))
and have excel see it as
=getpivotdata(sheet2!$a$3,'contents' 'of' 'cells' 'b1-b8')
Here is the code have currently
Public Function GetData(a, b, c, d, e, f, g, h, i)
Dim n, m As String
n = "'"
m = "' '"
GetData = a & "," & n & b & m & c & m & d & m & e & m & f & m & g & n
End Function
but I can't get "a" to show up as sheet2!$a$3 so I'd like to turn the cell reference into text.
Thoughts anyone?