Importing External Data problem. Random blank cells.

redpipe67

Board Regular
Joined
Aug 7, 2002
Messages
70
Currently I use this method of importing data from 1 workbook to update a worksheet in another workbook and it works fine. However there are cells dotted about in the worksheet that has been updated from the other workbook that are blank even though the cell in the original workbook contains data. I have checked the cell formatting and everything is on general at both the source and destination so I can't understand why certain cells are not updating and remain blank.

Can anyone explain this and what I need to resolve this issue?

Thank you very much.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

redpipe67

Board Regular
Joined
Aug 7, 2002
Messages
70
I believe I found the answer,

In a Database you cannot mix data types, a column must be all numbers or all text.
If there are different data types in the column ADO will copy only the Data type that have the majority.
This code is working in Excel 2000-2003

Does anyone know a way around this?
 

Forum statistics

Threads
1,181,647
Messages
5,931,208
Members
436,784
Latest member
amuljono

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top