excel - How to Include Space in VBA Text file output -


how can include space part of output in vba?

i have code below:

celldata = "aaaaa" & space & "bbbbb" 

and want generate output below:

"aaaaa" "bbbbb" 

but using code above, able generate:

"aaaaa""bbbbb" 

well " " space so

?"aaaaa" & " " & "bbbbb" aaaaa bbbbb 

or if want quotes

?"""aaaaa""" & " " & """bbbbb"" "aaaaa" "bbbbb" 

which of course:

? """aaaaa"" ""bbbbb"" "aaaaa" "bbbbb" 

space if function name have not valid, could:

"aaaaa" & space$(1) & "bbbbb" 

for single space.


Comments

Popular posts from this blog

python - PyInstaller UAC not working in onefile mode -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -