Reading 2 columns from Excel

Simon Scott 306 Reputation points
2022-11-22T17:10:43.22+00:00

Good afternoon,

Beginner programmer here so please be gentle!

I'm trying to read in column A and column B from a spreadsheet located on one of our servers to then display in a Datagridview.

Could someone point me in the right direction please?

Thanks
Simon

Developer technologies | Visual Basic for Applications
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Simon Scott 306 Reputation points
    2022-11-22T17:58:34.467+00:00
    0 comments No comments

  2. Oskar Shon 49,311 Reputation points Volunteer Moderator
    2022-11-22T20:16:47.107+00:00

    Datagridview not exist in VBA.
    Can be a vb.net from Visual studio or check your ActiveX control once again
    Can be a ListView from ConnomControl v1 ?


  3. Simon Scott 306 Reputation points
    2022-11-23T15:58:23.467+00:00

    Sorry this is within Visual Studio using vb.net!

    I have succeeded in importing the Excel spreadsheet in my DatagridView.....Now to work out how to pull the colours through!

    Appreciate you responding though :)


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.