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 -

python - RuntimeError: can't re-enter readline -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -