Formula to copy cell to another cell

Posted on 2011-10-04
Last Modified: 2012-06-21
I have a cell that I want to fetch the value from another cell. I want it to copy all the stuff from the cell, like the text in it, the text type, the background color, the text colour and so on. How do I do that? Is it possible to do by refereing in the cell that I just dont want to get the text in it?
Question by:mdoland
    LVL 50

    Expert Comment


    you cannot do that with formulas. You either need to copy and paste the cell manually, or use VBA to do that.

    Would that be an option?

    cheers, teylyn
    LVL 17

    Accepted Solution

    There's no formula that does that, but there is some VBA that will....


    This code takes the formatting as well as the contents from one cell and inserts it into (in this case) Cell A1.
    LVL 50

    Assisted Solution

    Use this code in the Sheet module.

    Any change you make to cell A2 will be reflected in cell F2.

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
            Range("A2").Copy Range("F2")
    End Sub

    Open in new window

    cheers, teylyn
    LVL 50

    Expert Comment

    gtg, selecting cells is slow and hardly ever necessary.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
    My experience with Windows 10 over a one year period and suggestions for smooth operation
    Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now