Results 1 to 2 of 2
  1. #1
    rexer231 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    2

    Macro solution for working with MS Access and Excel

    I have a excel sheet which is located in my D:/complete folder called complete.xlsx
    This excel sheet is very large and contains alot of data.I have tried to use macro only in excel but the type of function i am trying to automate is too much for excel to process, hence trying to take help of database. unfortunately i do not know anything about database.


    I am trying to work with a small portion of the data contained in the sheet, but the sheet takes a long time to process. I would like to import the excel sheet into MS Access and delete columns that are do not match the below cell values, located in the 11th row. i.e. the titles are located in the 11th row of the sheet.so the columns having Name, Age and Address as the title, I want all the data in that column, There are many column names and need to find and keep the below three.
    Name
    Age
    Address

    What I would like as a complete function is to be able to run a macro as described below:
    When inside excel sheet we run the VBA code ( Macro) where in it calls the MS Access software, which deals with the data and deletes all unnecessary information, after which the output is opened or viewed in the same excel sheet from where the VBA code ( Macro) was initially run, After which I can perform the next steps.
    Is it possible to do this? Would appreciate any assistance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I am inclined to say no. Because the Access code would have to open the existing Excel file as an object in VBA but this will likely error because the Excel file is already open. However, never tried anything like this so could be wrong.

    Also, I don't see how running the code in Access would be faster than running it in Excel.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help with excel macro from Access
    By allenjasonbrown@gmail.com in forum Macros
    Replies: 4
    Last Post: 09-18-2013, 12:50 PM
  2. Run Excel macro from Access VBA
    By ragsgold in forum Programming
    Replies: 29
    Last Post: 01-29-2013, 06:55 PM
  3. Excel Import Macro Help in Access
    By vennies83 in forum Import/Export Data
    Replies: 5
    Last Post: 11-02-2011, 09:24 AM
  4. Replies: 1
    Last Post: 10-15-2010, 06:09 AM
  5. Running excel macro from access
    By timpepu in forum Programming
    Replies: 1
    Last Post: 02-26-2010, 11:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums