+ Reply to Thread
Results 1 to 4 of 4

Copying a worksheet

  1. #1
    Registered User
    Join Date
    02-14-2010
    Location
    Preston England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Copying a worksheet

    i have the very simple problem of copying a worksheet from one workbook and placing it in another one. The macro = bringg() could hardly be simpler

    Sub bringg()
    Workbooks("Pajd.xlsx").Worksheets("EG62149").Copy
    Workbooks("Flights.xlsm").Worksheets("Sheet1").Paste
    End Sub

    BUT instead of putting thecdata from EG62149 on Sheet1 it opens a completely new workbook called Book1 and pastes the data on Sheet1 in this new workbook.

    Probably "I can't see for looking" but what did I do wrong, please ?

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Copying a worksheet

    Try it like this;

    Please Login or Register  to view this content.
    Can you work with that?
    Last edited by PaulSP8; 11-07-2019 at 08:42 AM. Reason: Code tags - Noob :(

  3. #3
    Registered User
    Join Date
    02-14-2010
    Location
    Preston England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Copying a worksheet

    Yes. Worked OK. Thank you.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Copying a worksheet

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] Copying a worksheet from a workbook and save it as a new worksheet based on a list. VBA
    By malitec in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-05-2015, 03:07 AM
  2. Replies: 4
    Last Post: 09-16-2015, 03:02 PM
  3. Copying Column from separate tabs in same worksheet into another worksheet with each colum
    By campbellbyte in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2014, 12:30 AM
  4. Copying cells dynamically to a worksheet based on values in another worksheet
    By freelance in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2013, 01:45 PM
  5. Replies: 11
    Last Post: 12-06-2012, 01:48 PM
  6. Replies: 3
    Last Post: 10-16-2012, 09:02 AM
  7. [SOLVED] Copying selected cells from multiple rows and columns from worksheet to worksheet
    By janlindgren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2012, 02:58 AM

Tags for this Thread

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