Link to home
Create AccountLog in
Avatar of Jim Horn
Jim HornFlag for United States of America

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
SOLUTION
Avatar of 5teveo
5teveo
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Jim Horn

ASKER

Question was not correct, I stated the ultimate resolution and awarded points for troubleshooting assistance.