Results 1 to 4 of 4

Thread: Importing from excel question

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    3

    Importing from excel question

    Greetings,

    I am trying to import data from an excel spreadsheet to access using VBA.

    I already know that some of the data needs to be modified, and that I will need to import the data to different tables.

    My thought would be to import the data into a preliminary table, and the move the data to the real table that will be used. From the preliminary table I want to manipulate the data and then delete out any unused fields.

    Any suggestions?

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Importing from excel question

    Welcome to VB Forums !
    Quote Originally Posted by STS4600 View Post
    Greetings,
    ---My thought would be to import the data into a preliminary table,...
    Any suggestions?
    If you need to do this only once, then...
    Open your excel sheet
    Select the desired rows
    Control-C
    Open Access
    Create a new file & a new table
    Control-V

    If you need to do it several times then it would be better to write the correspondent code, it could be in excel or in access...
    If you use ADO, then you can use a connection string special to open excel sheets
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    3

    Re: Importing from excel question

    We need to continuously add new data from excel to access. So this will not be a one time deal.

    Do you know what code we would need to set a macro up in Access or Excel to have this automated?

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Importing from excel question

    Hi.
    If you are going to program directly do access or excel with vba you better ask here:
    http://www.vbforums.com/forumdisplay.php?f=37
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width