H
hitmonkong
Dear All,
I am having trouble dealing with white space between names.
For example, I have the following code:
sheetName = "contact information"
Range("A210") = sheetName
when running the above code, I get an error message "Name is invalid". If I
change the sheetName to something without a space in between, then the code
will run successfully. Is there a way to make Excel VBA recognize and not
fuss about the white space? I know in Access VBA, you can just put [] next to
the sheetName and it will take in the whole sheetName including the space.
Any help is appreciated.
Thank you.
I am having trouble dealing with white space between names.
For example, I have the following code:
sheetName = "contact information"
Range("A210") = sheetName
when running the above code, I get an error message "Name is invalid". If I
change the sheetName to something without a space in between, then the code
will run successfully. Is there a way to make Excel VBA recognize and not
fuss about the white space? I know in Access VBA, you can just put [] next to
the sheetName and it will take in the whole sheetName including the space.
Any help is appreciated.
Thank you.