+ Reply to Thread
Results 1 to 4 of 4

Table creation and index

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    7

    Table creation and index

    Hi

    Please find attached my document

    In the Config tab, i have created a button which import in the Asset list tab a list of information from another excel document.
    I've made this list clearer in three step.

    Now i want to create tables (you can see some example on the Correction Document tab) with an asset id, tab name, and type which correspond to the step3 of my list of information in the asset list tab.

    Thank you very much for the help

    Regards
    Attached Files Attached Files

  2. #2
    Forum Contributor PingPing's Avatar
    Join Date
    02-19-2010
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    158

    Re: Table creation and index

    You've gone a long way down the road with your worksheet/range/copy/paste code but, to be honest, it would have been better to have used ADO to get the data into a Recordset. You could then 'MoveNext' through the Recordset and, for each record, call some code that adds to the 'Correction Document' worksheet. I appreciate that this doesn't help you in the short term but, if you have to do this type of exercise again, you'll quickly see the benefits of using SQL rather than worksheet/range/copy/paste.

  3. #3
    Registered User
    Join Date
    04-12-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Table creation and index

    Unfortunately i'm novice in VBA and i'm discovering ADO for the first time today.

    That is to say that my source of information imported in asset list tab needs to be a microsoft-access file ?

    Thanks

  4. #4
    Forum Contributor PingPing's Avatar
    Join Date
    02-19-2010
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    158

    Re: Table creation and index

    No. Microsoft Jet/ACE can query Excel (and text) files as well: http://support.microsoft.com/kb/257819

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1