I import numbers from access into excel, but they are regarded as text in excel(aligned to left of cell). how can i programatically convert this text to numbers?
Dim oCell As Range
For Each oCell In Selection
oCell = Val(oCell)
Next
This works with the current selection. You can replace Selection with the address of a spcified range if that suits, e.g. For Each oCell In Range("A1:C100"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.