+ Reply to Thread
Results 1 to 6 of 6

Copy content

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    26

    Copy content

    Hi Guys,

    Currently, i've got this macro:

    Please Login or Register  to view this content.
    This code copies a sheet from one file to another. But, i don't want to copy the sheet, but only the content and place this content in another (already existing) sheet.

    I Tried this code
    Please Login or Register  to view this content.
    But it doesn't seem to work. What do i do wrong?

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Copy content

    not completesly clear to me

    however try this satement

    Please Login or Register  to view this content.
    I assume strnameworkheet is the object of the second sheet.

  3. #3
    Registered User
    Join Date
    10-12-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Copy content

    Well,
    From file A, i want to fill a worksheet (allready existing) with a worksheet from file B. Thats the meaning.

  4. #4
    Registered User
    Join Date
    10-12-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Copy content

    This is currently my code.

    Please Login or Register  to view this content.
    Still, no values are being pasted. How can i check if the the copy-rule ( Sheets(2).Cells.Range("A1").Copy) works well? Or does any1 see what's wrong in my code?

    Gr.

  5. #5
    Registered User
    Join Date
    10-12-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Copy content

    Any1 who can help me?

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Copy content

    Not exactly clear what you want to do. Here's an example - copy SourceWorkbook.Sheets(2) values to the current_book.Sheets("CPF")
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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