B
Bill Murphy
I have a user defined subroutine where I create Excel spreadsheets,
total columns, format cells, etc. I need to pass a formula to the
subroutine to use when summing columns, as follows:
strFormula = """""=SUM(""" & " & rng.address & " & """)"""""
InsertFormulas strFilePath, strQueryToUse, 16, 8, strFormula
The resulting string variable in the subroutine looks the same as above,
except there is an extra pair of double quote marks surrounding it:
""=SUM(" & rng.address & ")""
What's the proper syntax for passing a parameter like this to get:
"=SUM(" & rng.address & ")" for use in the subroutine?
Bill
total columns, format cells, etc. I need to pass a formula to the
subroutine to use when summing columns, as follows:
strFormula = """""=SUM(""" & " & rng.address & " & """)"""""
InsertFormulas strFilePath, strQueryToUse, 16, 8, strFormula
The resulting string variable in the subroutine looks the same as above,
except there is an extra pair of double quote marks surrounding it:
""=SUM(" & rng.address & ")""
What's the proper syntax for passing a parameter like this to get:
"=SUM(" & rng.address & ")" for use in the subroutine?
Bill