Excel VBA reference a macro variable inside quotes -



Excel VBA reference a macro variable inside quotes -

i'm trying reference string macro variable insude quotes.

here's have. why couldn't &state. arrrggg!

thanks

dim state string state = "ak" workbooks.open filename:= _ "\\sac-psas-02\pm\ma\scott\ow\hpi trend pci outlier removal\lr_hpi_""" & state & """ .csv"

simply:

"\\sac-psas-02\pm\ma\scott\ow\hpi trend pci outlier removal\lr_hpi_" & state & ".csv"

(you need multiple " within string when want " character)

excel-vba

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -