+ Reply to Thread
Results 1 to 12 of 12

Copy & Pasting Formula to Cells in Another Sheet

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    110

    Unhappy Copy & Pasting Formula to Cells in Another Sheet

    Hi,

    I have 2 sheets to work on. Sheet1 is a database of formula and Sheet2 is where I want the formula to be pasted to.

    Sheet1 has the formula and the cell where it should go in Sheet2

    I cant figure out how to execute the copy pasting one cell at a time from one sheet to another. Also, the number of formula to copy depends on what's on Sheet2

    See attached.CopyPasting one at a time.xlsx

    Thanks everyone!

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy & Pasting Formula to Cells in Another Sheet

    Maybe this:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Copy & Pasting Formula to Cells in Another Sheet

    Hi,

    It's close. It's doing what I wanted to do but

    It seems to be deleting other data. I have attached the file that I am working on. Book1.xlsx

    Sheet1's name may change depending on user preferences.

    It is important that data in Sheet1(budget) does not change except the addition of the formula to specific cells.

  4. #4
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Re: Copy & Pasting Formula to Cells in Another Sheet

    try this below code in book1.xls
    Please Login or Register  to view this content.
    Give Feedback and Click(*)

  5. #5
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Copy & Pasting Formula to Cells in Another Sheet

    Quote Originally Posted by venkatpvc View Post
    try this below code in book1.xls
    Please Login or Register  to view this content.
    Thank you!
    Will try it out!

    Is it possible to also drag the formula (dynamic cell range) offsetting it 11 places to the right?
    Last edited by smartbuyer; 11-29-2013 at 01:31 AM.

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy & Pasting Formula to Cells in Another Sheet

    Quote Originally Posted by smartbuyer View Post
    It seems to be deleting other data.
    In the code there isn't anything that would change/delete any other data other than cells of the addresses you have.

    Here is the amended code for book1

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Copy & Pasting Formula to Cells in Another Sheet

    Quote Originally Posted by millz View Post
    In the code there isn't anything that would change/delete any other data other than cells of the addresses you have.

    Here is the amended code for book1
    Thanks Millz! I figured that one out, Now I'm looking to add a code that will drag the formula (dynamic cell range) offsetting it 11 places to the right. Help?

  8. #8
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy & Pasting Formula to Cells in Another Sheet

    If I get what you mean.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Copy & Pasting Formula to Cells in Another Sheet

    How do I code this:

    If Sheets("Formula List") Range("H) is in Cell "C" then
    Please Login or Register  to view this content.
    If Sheets("Formula List") Range("H) is in Cell "D" then
    Please Login or Register  to view this content.

  10. #10
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Copy & Pasting Formula to Cells in Another Sheet

    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,534

    Re: Copy & Pasting Formula to Cells in Another Sheet

    Please read forum rules about cross posting

  12. #12
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Copy & Pasting Formula to Cells in Another Sheet

    You. are. awesome!!

    Quote Originally Posted by millz View Post
    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)

Similar Threads

  1. Copy & Pasting Multiple Cells and Ranges From Each Worksheet To a Seperate Sheet
    By tuc28869 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2013, 02:57 PM
  2. Replies: 0
    Last Post: 09-22-2012, 03:38 AM
  3. [SOLVED] In copy/pasting cells to a new sheet cannot automate cells (1, x) based on user input
    By CEDarnell in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-05-2012, 06:08 PM
  4. Replies: 2
    Last Post: 11-21-2011, 11:54 AM
  5. Problem when copy pasting a picture from sheet to sheet
    By leugu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2011, 04:07 AM

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