+ Reply to Thread
Results 1 to 4 of 4

VB Code to bring data from Closed file

  1. #1
    Forum Contributor
    Join Date
    01-31-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    193

    VB Code to bring data from Closed file

    Hello:

    I have Quarterly Payroll detail csv files in folder C:\Temp\Data\ folder as attached.
    Name of these files start with MM-YYYY


    I need VB Code to copy the data from csv file into Sheet called "TotalPR" with 1st column being the last day of the quarter as shown.

    I have manually done above in attached file "Payroll Merge"

    Please let me know if you have any questions.
    Thanks.

    R
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,223

    Re: VB Code to bring data from Closed file

    More or less like this
    Please Login or Register  to view this content.
    Artik

  3. #3
    Forum Contributor
    Join Date
    01-31-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    193

    Re: VB Code to bring data from Closed file

    Hello Artik:

    I am getting error .

    I think you have misunderstood..
    There is NO SQL CONNECTION.
    Need to Open 1st csv file and paste and closed and then open second csv and paste and go on.

    Please let me know if you have any questions.
    Thanks.

    R

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,223

    Re: VB Code to bring data from Closed file

    Quote Originally Posted by rmomin View Post
    I am getting error .
    It's like calling my mechanic and telling him my car is down. You think he would know what's wrong with him?
    You need a more detailed description of what is not working. Message content, error number, symptom description.

    Quote Originally Posted by rmomin View Post
    Need to Open 1st csv file and paste and closed and then open second csv and paste and go on.
    I take it that you want to process all CSV files in the specified folder?

    Artik

+ 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. VB code to get data from closed file with criteria
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2019, 07:01 PM
  2. [SOLVED] VB Code to extract certain data from closed csv file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-12-2016, 03:30 PM
  3. update code for inserting data in all closed file in folder
    By mokht in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2015, 07:14 PM
  4. [SOLVED] Need help with syntax with vba code for removing duplicates from closed file and copy data
    By dj_mix in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2013, 11:49 AM
  5. Code to replace closed workbook file name
    By Meli602 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2008, 01:22 PM
  6. Passing arguments into function to bring data array from closed wb
    By Peter Rooney in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-08-2006, 10:55 AM
  7. [SOLVED] Code for bring up the file->open dialog box
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2006, 11:25 PM

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