+ Reply to Thread
Results 1 to 6 of 6

C&P data from 1 WB to another WB without actually seeing the opening of the pasted WB.

  1. #1
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    C&P data from 1 WB to another WB without actually seeing the opening of the pasted WB.

    Hello friends, Hope all is well!

    I have a folder called: MD; in it, there are two workbooks:

    MDDB and NY.

    Can you please help me? I am hoping to have a vba code, in the workbook MDDB module that will:

    1. Go to sheet DB in MDDB, and filter column D, the filter will be made on the word NY (i.e. show the data related to NY only).
    2. Then copy all the data in DB from A to R, without the headers.
    3. and Paste the copied rows (without the headers) onto DB of the workbook NY after the last filled row (A to R).
    4. without letting the workbook NY open. At least without letting it look visible please.

    I tried doing all the above, and I did successed but in a long and untidy way.
    If someone would kindly help me; I will surely learn from that experience, and
    Will be able to do it on my own, and will pass on the knowledge for sure.

    Thank you so much for the continuous phenomenal help in advance!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: C&P data from 1 WB to another WB without actually seeing the opening of the pasted WB.

    Have you considered doing this with formulas, instead?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Re: C&P data from 1 WB to another WB without actually seeing the opening of the pasted WB.

    I would rather if you please to use a code please; since I am dealing with the data for multiple cities. Your kind help is needed and truly appreciated.
    Last edited by countryfan_nt; 06-26-2017 at 06:37 PM.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: C&P data from 1 WB to another WB without actually seeing the opening of the pasted WB.

    How about this ?

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Re: C&P data from 1 WB to another WB without actually seeing the opening of the pasted WB.

    very very Very Cool! thank you; one little challenge, the code runs smoothly but the NY workbook popups for a second, can the code run without allowing NY workbook visible? But, seriously thank you!

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: C&P data from 1 WB to another WB without actually seeing the opening of the pasted WB.

    First of all thanks for rep+.

    I guess that has to do with your system because when I run the code I only see a minor,minor glitch in the cells (have to look very close to mention it).
    So I think there's nothing more to be done apart from setting the Screenupdating.

+ 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. Macro to only allow data to be copy pasted based on data validation criteria
    By forea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2016, 08:34 AM
  2. Sorting Pasted Data by Recognizing Data as Dates
    By quibilty in forum Excel General
    Replies: 1
    Last Post: 10-26-2013, 09:38 PM
  3. Replies: 9
    Last Post: 03-15-2012, 12:02 PM
  4. New Data pasted over old data/Keeping static Text
    By ZackG in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2011, 02:06 PM
  5. Data Validation - Ignored When Pasted
    By jeffcravener in forum Excel General
    Replies: 1
    Last Post: 10-02-2009, 09:28 AM
  6. Data pasted from Another APP
    By Timmy Mac1 in forum Excel General
    Replies: 4
    Last Post: 04-21-2008, 02:06 PM
  7. Replies: 3
    Last Post: 08-11-2006, 09:10 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