+ 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
    Posts
    311

    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 Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    8,454

    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.
    You really don't have to give me rep points for moderating. It's part of the job. Keep rep points for those who find solutions

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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