+ Reply to Thread
Results 1 to 3 of 3

Copy and Paste from one worksheet to another in the same position

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Red face Copy and Paste from one worksheet to another in the same position

    Hi

    I am trying to write a macro which will copy data from one worksheet to another in the same workbook.
    I need to first be able to select the cells where there is a formula and then copy the results of the formula into the same location but onto a different worksheet.
    Please Login or Register  to view this content.
    I hope someone can help me please
    Last edited by vlady; 08-14-2013 at 07:23 PM.

  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 and Paste from one worksheet to another in the same position

    Hi, vwyeth,

    LColumn is given no value so it will be 0 and raise an error. And you missed the closing Next for the loop in the sample.

    Maybe try it like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    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
    06-18-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Copy and Paste from one worksheet to another in the same position

    This works a treat! Thanks very much.

+ 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 data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2012, 02:49 AM
  2. Replies: 1
    Last Post: 06-22-2012, 08:59 PM
  3. Copy/paste buttons to same position
    By Hambone70 in forum Excel General
    Replies: 2
    Last Post: 02-13-2011, 12:00 PM
  4. Macro to create worksheet, change it's position, and paste date into it.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-19-2009, 02:47 PM
  5. Change position of move or copy worksheet option in Excel
    By JesseAviles in forum Excel General
    Replies: 1
    Last Post: 02-22-2005, 07:06 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