+ Reply to Thread
Results 1 to 5 of 5

copy work sheet from another work book into already exits sheet

  1. #1
    Registered User
    Join Date
    03-20-2015
    Location
    chennai
    MS-Off Ver
    2007
    Posts
    9

    Post copy work sheet from another work book into already exits sheet

    hi,
    i want copy and paste worksheet from "user rasied" workbook to summary workbook. in that(summary) having user system generated sheet already exits with data i want to paste data from "user rasied" workbook to (summary) user system generated copy to below from last row used can u help me

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: copy work sheet from another work book into already exits sheet

    Hi, Baskar5353,

    Google should have shown a very long list for that topic. Start trying WBs to 1 Sheet. You may have to slightly alter the code to meet your request.

    Ciao,
    Holger
    Last edited by JBeaucaire; 12-26-2019 at 04:15 PM.
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    03-20-2015
    Location
    chennai
    MS-Off Ver
    2007
    Posts
    9

    Re: copy work sheet from another work book into already exits sheet

    Sub mmm()
    Dim pasteSheet As Worksheet
    Dim strFileToOpen As String
    strFileToOpen = Application.GetOpenFilename _
    (Title:="Please choose a file to open", _
    FileFilter:="Excel Files *.xls* (*.xls*),")
    Workbooks.Open Filename:=strFileToOpen


    Set copySheet = Worksheets("sheet2")
    Set pasteSheet = Worksheets("sheet1")
    Range("A1").Select
    Range(Selection, Selection.End(xlDown)).Select
    Range(Selection, Selection.End(xlToRight)).Select
    Selection.Copy
    pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
    Application.CutCopyMode = False
    Application.ScreenUpdating = True

    End Sub
    i have written the code but it was copying the within the sheet only. i want copy the sheet by opening the workbook and select the sheet

  4. #4
    Registered User
    Join Date
    07-03-2015
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    8

    Re: copy work sheet from another work book into already exits sheet

    Hi,
    I am using the following code to combine sheets out of a folder into my master sheet. (Copying always the first sheet)

    Please Login or Register  to view this content.
    Last edited by m4444nk; 07-07-2015 at 03:22 AM.

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: copy work sheet from another work book into already exits sheet

    Hi, Baskar5353,

    please add code-tags to your code. Same goes to m4444nk: Forum Rule #3

    Are both workbooks open, should workbook B (holding data to copy) be closed after the macro, are there formulas in the sheet you want to hold or convert them to values?

    Ciao,
    Holger
    Last edited by HaHoBe; 07-07-2015 at 05:36 AM. Reason: changed from #1 (title) to #3 (code-tags)

+ 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/Pasting a Sheet multiple times in the same work book
    By Morallach in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2014, 10:11 PM
  2. [SOLVED] Copy/Pasting an excel sheet with the same formatting/formulas in the same work book to x
    By Morallach in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2014, 02:57 AM
  3. Copy active sheet to a new workbook, close that work book and return
    By nig_44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2012, 02:24 AM
  4. Macro to copy sheet from closed work book and overwrite if sheet already exists
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-23-2009, 06:36 PM
  5. Find and copy across multi-sheet work book
    By chris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2005, 03:05 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