+ Reply to Thread
Results 1 to 4 of 4

I need a macro to extract data from a database

  1. #1
    Registered User
    Join Date
    12-30-2017
    Location
    Luxembourg
    MS-Off Ver
    2016
    Posts
    33

    I need a macro to extract data from a database

    Hi,

    I would like to extract, from the sheet "Database" of the here attached WB "DataToBeExtracted", the values in the blue columns R, S, T, for every person (represented by letters in column B) for which at less one of the 3 values >0, for a month to be determined by an Inputbox, and paste and arrange the data in a new WB like the second one attached (DataArranged).
    At the end it has to be "saved as": see the instructions in "DataArranged".

    Valete!
    AmicusA
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: I need a macro to extract data from a database

    Place this macro in your "DataToBeExtracted" workbook and save the workbook as a macro-enabled file. Make sure that your "DataArranged" workbook is also open and run the macro.
    Please Login or Register  to view this content.
    What is the folder path of where you want to save the file? This part is missing from the macro.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    12-30-2017
    Location
    Luxembourg
    MS-Off Ver
    2016
    Posts
    33

    Re: I need a macro to extract data from a database

    Hi,
    Thank You very much for this nice work!
    Actually I don't know myself the real path; for now it is on my PC: C:\Users\jd\Desktop\Heures 2018
    Kind regards
    AmicusA

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: I need a macro to extract data from a database

    You are very welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need macros to extract data from database/compare/update database - Excel 2007
    By saroby in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2014, 01:45 PM
  2. Find or Extract data from database
    By mohan.r1980 in forum Access Tables & Databases
    Replies: 2
    Last Post: 03-23-2014, 07:19 PM
  3. Macro to extract certain unique values from database and manipulate them
    By bberger1985 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-28-2013, 06:53 PM
  4. How to: Extract specific data from an Access Database
    By JPWRana in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2013, 03:38 PM
  5. extract data from Oracle database
    By myguess21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2013, 01:30 PM
  6. Formula to extract data from database
    By Jokacave in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2008, 06:31 AM
  7. [SOLVED] Extract Data from an Access Database in to Excel
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2006, 08:20 AM

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