+ Reply to Thread
Results 1 to 2 of 2

VBA to Copy a Workbook to another Spreadsheet

  1. #1
    Registered User
    Join Date
    08-19-2019
    Location
    Southampton, England
    MS-Off Ver
    2013
    Posts
    1

    VBA to Copy a Workbook to another Spreadsheet

    Hi Friends,

    as expressed in some previous posts, I'm very new to VBA and am definitely trying to punch above my limited knowledge at the moment, you help one person in the office, then you are an expert!!

    I have two documents, Supplier OPS KPI and NON Conformance.

    Within the NON Conformancen document (which I have set up a User Form against), I would like to copy all of the data from a workbook (tab) called 'Hotel KPI' to a tab within the document Supplier OPS KPI.

    Every example of the code I have found online leads to a '9' error or something similar.

    Does anybody have an example of the code I need to make this work?

    Also, as the Hotel KPI tab is always being added to on a daily basis, is it possible to ensure that when the Macro is run, it doesn't keep creating a new workbook within the Supplier OPS KPI but just updates the existing tab?

    Sorry for the vague-ness of this post, I hope someone can help

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,519

    Re: VBA to Copy a Workbook to another Spreadsheet

    Welcome to the forum

    Best bet ...

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Copy entire spreadsheet (with all its content) from one workbook to another.
    By Dolke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-18-2017, 03:11 PM
  2. [SOLVED] Copy Two Specific Columns from One Spreadsheet to Another in the Same Workbook
    By Deathwreaker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-29-2014, 05:04 PM
  3. Macro to copy spreadsheet and graph on new workbook values only
    By SubwAy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2013, 10:26 PM
  4. Copy/Paste data from master workbook to multiple spreadsheet
    By lilbamboo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 04:05 PM
  5. Copy Spreadsheet from one workbook to another workbook.
    By Kanook22 in forum Excel General
    Replies: 5
    Last Post: 08-30-2012, 12:28 AM
  6. [SOLVED] copy selected data from a workbook to another spreadsheet each time I run a template
    By mickyh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2012, 07:18 PM
  7. copy spreadsheet in new workbook, macro problem
    By matthias in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-09-2006, 02:50 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