Forum Discussion
VShostak
Nov 06, 2023Copper Contributor
macro VBA excel change cell format
Hello! In my macro, I used code to replace "." on ",". However, during this replacement, the cell format changes to text. How can I write code to ensure that the format remains as a number? S...
HansVogelaar
Nov 06, 2023MVP
VShostak
Nov 06, 2023Copper Contributor
Now they change "." on space " " instead ",".
Сan you tell me how to write the code correctly.
Сan you tell me how to write the code correctly.
- HansVogelaarNov 06, 2023MVP
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
- VShostakNov 06, 2023Copper Contributor
- HansVogelaarNov 06, 2023MVP
The values in columns Z to AC have spaces before the numbers. Why is that?