Hiya, what I am trying to do is concatenate a string without it leaving white space.
I've tried the Trim() function, but it hasn't removed it.
What I have currently is:
MyWorkbook.Sheets("Sheet" & Str(x)).Name = newnamearray(x)
Problem is, the result of "Sheet" & Str(x) is "Sheet 1" - not "Sheet1". I can't figure out how you can concatenate a string without the white space, which is irratating. any help appericated.
I've tried the Trim() function, but it hasn't removed it.
What I have currently is:
MyWorkbook.Sheets("Sheet" & Str(x)).Name = newnamearray(x)
Problem is, the result of "Sheet" & Str(x) is "Sheet 1" - not "Sheet1". I can't figure out how you can concatenate a string without the white space, which is irratating. any help appericated.