Jim Horn
asked on
Excel 2010 Data Connections, Need to make sure all cells are text
Hi All
Question: How to I insure that all cells in a data connection refresh as straight text?
I have an Excel 2010 workbook with three tabs that map to SQL Server views.
All columns are varchar's, but some values are in the correct format for currency (e.g. $0.00)
When I Data .. Refresh All, the varchar's with currency numbers are showing with a trailing space, even though when I right-click:Properties the format in the Number tab is General.
I tried creating VBA code in the Workbook_Open event to select all three tabs and do a Selection.ClearFormats, but that isn't working.
Thanks in advance.
Jim
Question: How to I insure that all cells in a data connection refresh as straight text?
I have an Excel 2010 workbook with three tabs that map to SQL Server views.
All columns are varchar's, but some values are in the correct format for currency (e.g. $0.00)
When I Data .. Refresh All, the varchar's with currency numbers are showing with a trailing space, even though when I right-click:Properties the format in the Number tab is General.
I tried creating VBA code in the Workbook_Open event to select all three tabs and do a Selection.ClearFormats, but that isn't working.
Thanks in advance.
Jim
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER