Retrieving data from Excel and store it into string variable

  • Thread starter Thread starter marsulein
  • Start date Start date
M

marsulein

Hi NickHK,

I have just get it working. The problem lies with the spreadsheet
itself. You see, there are 900 records in there, and I am not the one
that wrote all those data in. The point is, the data entry person did
some mistakes, there are some fields which is emptied.

It is also my mistakes not to check for empty fields, I will build in
that function after this.

Just wanna say thanx for your help along the way.

And before I go, though that 2 method of creating RecordSet are
different, they have the same result. It's like doing

Dim MyName as String
Dim MyNick$

Regards,
marsulein
 
marsulein,
Whilst the 2 methods achieve the same goal, they are not the same as you
indicate below.
With CreateObject you are using late binding, but Set xx = New you are using
early binding.

If you have a reference to ADO library, you may as well use it and not
suffer the late binding resolution time.

NickHK
 

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

Back
Top