Web Query

D

Don Guillett

Probably a Yahoo problem but if you want to send you file to my address
below I'll take a look.
I do a lot of web query work for clients especially with Yahoo. BTW I'm a
retired ING Reg Mgr.
 
D

Don Guillett

Another look at your problem seems that, IF you bring in as plain text, you
can see that Excel is treating some as numbers and some as text. Here is a
macro I often use to force numbers. Adapt to suit
Sub fixmynums()
Application.ScreenUpdating = False
'lr = Cells.SpecialCells(xlCellTypeLastCell).Row
On Error Resume Next
For Each c In Selection
' For Each c In Range("b5:i" & lr)
If Trim(Len(c)) > 0 And c.HasFormula = False Then
c.NumberFormat = "General"
c.Value = CDbl(c)
End If
Next
Application.ScreenUpdating = True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top