+ Reply to Thread
Results 1 to 3 of 3

How do i use VBA to copy a cell formula to another cell and not just the cell value?

Hybrid View

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    23

    How do i use VBA to copy a cell formula to another cell and not just the cell value?

    How do i use VBA to copy a cell formula to another cell and not just the cell value?

  2. #2
    Forum Contributor
    Join Date
    06-09-2011
    Location
    Germany
    MS-Off Ver
    Excel 2016
    Posts
    194

    Re: How do i use VBA to copy a cell formula to another cell and not just the cell value?

    Hi Murtaep,

    try this one:

    Sub Macro2()
    'copy formula from cell c23 to cell c 24
    Range("C24").Formula = Range("C23").Formula
    End Sub

    Regards

    Theo
    ____________________
    Don't forget to mark your threads as "closed" once your problem is solved! Don't forget to thank those who helped you by clicking on the star at the left of your "helpers" reply.
    Remember To Do the Following....
    1. Upload sample files
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: How do i use VBA to copy a cell formula to another cell and not just the cell value?

    Worked 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)

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