+ Reply to Thread
Results 1 to 6 of 6

copy trimed(cleaned) data to four different workbooks in same folder.

  1. #1
    Forum Contributor
    Join Date
    10-30-2019
    Location
    GUJARAT,INDIA
    MS-Off Ver
    MS OFFICE 2016
    Posts
    134

    copy trimed(cleaned) data to four different workbooks in same folder.

    I have four excel workbooks (i.e. workbook A,B,C,D )in same folder(name of folder 'data') having path c:\data.All four workbooks have sheets named 'nb' and 'ag' common.
    I have raw data in workbook 'A' having two sheets 'nb' & 'ag' I cleaned(trim) data of two sheets in workbook 'A' using trim formula.

    I want vba code to copy trimed(cleaned) data to all three workbooks i.e. copy data in sheet 'ag' in workbook 'A' to sheet 'ag'
    in work book B,C & D and copy data in sheet 'nb in workbook 'A' to sheet 'nb' in work book B,C & D.

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: copy trimed(cleaned) data to four different workbooks in same folder.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-30-2019
    Location
    GUJARAT,INDIA
    MS-Off Ver
    MS OFFICE 2016
    Posts
    134

    Re: copy trimed(cleaned) data to four different workbooks in same folder.

    Excellent ! Code is giving desired results. Only two modifications required.
    01. I want to insert this code in workbook 'A'. When I insert and run code from workbook 'A' error message 'workbook
    'A' is open" is displayed and code stops working.

    02.When code inserts data in workbook (workbook B,C,D) formulas in that workbook starts calculations and takes lot of time to complete calculations. I want code to turn off 'auto calculating' Mode(switch to Manual calculating Mode) while importing
    data and after workbooks are saved turn on 'auto calculating' Mode.

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: copy trimed(cleaned) data to four different workbooks in same folder.

    I don't do requirements. do you want to give it a try yourself? you have plenty to learn from now. why not try it? if you get stuck, you can always ask for assistance.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: copy trimed(cleaned) data to four different workbooks in same folder.

    Instead of Activating and Selecting as in
    Please Login or Register  to view this content.
    would it not be better to use something like this?
    Please Login or Register  to view this content.
    or even
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: copy trimed(cleaned) data to four different workbooks in same folder.

    Another approach
    Change references, incl capitalizations, where required.
    Please Login or Register  to view this content.
    Last edited by jolivanes; 09-27-2020 at 07:10 PM.

+ 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. [SOLVED] Copy range of data from all workbooks in folder and paste to multiple sheets in new book
    By Brontosaurus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2019, 08:52 AM
  2. [SOLVED] Copy Range from multiple Workbooks in folder, to Summary Workbook also in same folder?
    By xlyfe in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-24-2018, 01:22 PM
  3. [SOLVED] VBA to copy cell data from same worksheet in multiple workbooks within a folder.
    By lee_har in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-25-2017, 02:37 PM
  4. Copy value from multiple workbooks in the same folder
    By starchris4 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2014, 07:21 PM
  5. VBA loop through all workbooks in folder copy data into new summary tab
    By Beany213 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2013, 06:03 AM
  6. copy & paste data from multiple workbooks to new workbook in a folder
    By Ignesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2012, 03:11 AM
  7. create a compressed folder or zipped folder then copy workbooks to it.
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-04-2012, 03:56 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