+ Reply to Thread
Results 1 to 7 of 7

Need a Macro to grap individual data cells and check box data,Multiple files into single

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    19

    Need a Macro to grap individual data cells and check box data,Multiple files into single

    Having trouble with this. Need a macro that pulls unigue cell data from all of the excel files in one directory and combines them into rows of data on a single excel form so that reports can be generated with the data. One of the wringles is that two of the cell data points I need are check boxes.

    I need to pull in the following cell feilds in this order on the new file.

    Source - New File
    F2-A
    F3-B
    F9-C
    F4-D
    C9-E
    C11-F
    F11-G
    I11-H
    A14-I
    A21-J
    A23-K
    CHECK BOX 12-L
    CHECK BOX 11-M

    Thanks

    Eric

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need a Macro to grap individual data cells and check box data,Multiple files into sing

    Eric,

    Are the checkboxes ActiveX controls or Form controls?
    Do you only need to know if the checkboxes are checked or not? If so, what do you want to represent checked/unchecked? (like TRUE = checked, FALSE = unchecked, or something else?)
    Will the new file have headers? If so, what are the headers?
    Are the excel files always in the same directory? Does it have subfolders?
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Need a Macro to grap individual data cells and check box data,Multiple files into sing

    Tigeravatar,

    Are the checkboxes ActiveX controls or Form controls? Forms
    Do you only need to know if the checkboxes are checked or not? If so, what do you want to represent checked/unchecked? (like TRUE = checked, FALSE = unchecked, or something else?) False or checked works
    Will the new file have headers? If so, what are the headers?
    F2-A-Date
    F3-B-Tracking Number
    F9-C-New P.O.
    F4-D-Original P.O.
    C9-E-Customer
    C11-F-Part Number
    F11-G-Serial Number
    I11-H-Lot Number
    A14-I-Reason for Return
    A21-J-Comments
    A23-K-Findings
    Check Box 12-L-Agree
    Check Box 11-M-Disagree

    Are the excel files always in the same directory? Does it have subfolders? No all in same directory

    Eric

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need a Macro to grap individual data cells and check box data,Multiple files into sing

    Eric,

    Give this a try:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-09-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Need a Macro to grap individual data cells and check box data,Multiple files into sing

    Tigeravatar,

    Not sure what is wrong but with my file it just keeps looping without letting me Debug. Here are two examples of the files in the folder.

    Eric
    Attached Files Attached Files

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need a Macro to grap individual data cells and check box data,Multiple files into sing

    Eric,

    I forgot the strCurrentFile = Dir line. Updated code, ran successfully when I tested with your provided example files
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-09-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Need a Macro to grap individual data cells and check box data,Multiple files into sing

    Tigeravatar,

    That worked great Thank you, Now I just need to make a report function to output based on some variables.

    Eric

+ 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