ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can Not get cell to accept any format change! Source from html (https://www.excelbanter.com/excel-worksheet-functions/226656-can-not-get-cell-accept-any-format-change-source-html.html)

Quentin

Can Not get cell to accept any format change! Source from html
 
Copied bank html statement to Excel Worksheet. Columns of numbers &/or cell
will not accept a format change to Currency. Same columns would not add.
Did 'Paste Special' every option... no change occured.
Did save as to csv and csv file responded the same.

Dave Peterson

Can Not get cell to accept any format change! Source from html
 
Lots of times, when you copy|paste from a web site, you'll get those HTML
non-breaking spaces (char(160)).

You can clean them up with formulas, but if you have to do it lots of times (or
with lots of data), you may want to use a macro.

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

Quentin wrote:

Copied bank html statement to Excel Worksheet. Columns of numbers &/or cell
will not accept a format change to Currency. Same columns would not add.
Did 'Paste Special' every option... no change occured.
Did save as to csv and csv file responded the same.


--

Dave Peterson


All times are GMT +1. The time now is 02:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com