+ Reply to Thread
Results 1 to 10 of 10

How to copy cell formatting accross sheets.

  1. #1
    Registered User
    Join Date
    05-13-2009
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    How to copy cell formatting accross sheets.

    If I wanted to copy a cells formatting and content (Text) to another cell on a separate sheet, what code would I have to embed? I am a fresh neuling, so give it to me straight.

    I have attached an example to this post.
    I want to transfer the red and bold attributes of the words within the ( ) in sheet 1 to the cells in sheet 2 that I have linked to the cells in sheet 1 with =.

    Thank you.
    Attached Files Attached Files
    Last edited by alexneedshelp; 05-22-2009 at 01:41 PM. Reason: solved

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: How to copy cell formatting accross sheets.

    Formula results cannot be formatted in the manner you desire.

  3. #3
    Registered User
    Join Date
    05-13-2009
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to copy cell formatting accross sheets.

    That seems somewhat limited..

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: How to copy cell formatting accross sheets.

    You could copy and paste:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to copy cell formatting accross sheets.

    As already indicated, you cannot reflect varying formatting when pulling a value into a cell with a FORMULA. It only pulls in the value and any formatting in that cell applies. This is actually a very good thing. But not in your situation.

    So, as I indicated in your other post on this topic, the only way to do this is with a real-time worksheet macro that mirrors the cells in question. Like so:
    Please Login or Register  to view this content.
    I set that example to duplicate the entire column A as you make changes, but you could define a smaller exact range, too.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    05-13-2009
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to copy cell formatting accross sheets.

    So, if I utilize the code you have provided, it would simply copy the actions carried out on sheet #1, to sheet #2?

    I must admit, I am quite confused.


    Let me make this easier on all of you, helpful as you have been.

    Will I be able to achieve what I am attempting? If not, it will not be a problem.


    Also, could you recommend a online guide to VBA coding? The ones I have found do not seem to be that helpful.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to copy cell formatting accross sheets.

    I've shown you one way...and there are MANY...to type an entry on one cell and have it appear (formatting and all) in the same cell on a different sheet.

    I'm not sure what new question you've asked.

  8. #8
    Registered User
    Join Date
    05-13-2009
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to copy cell formatting accross sheets.

    ...

    So IT IS POSSIBLE to copy formatting within a cell that contains a FORMULA, in SEVERAL WAYS?
    Somewhat contradictory, but alright. I got it.


    I appreciate all of your help.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to copy cell formatting accross sheets.

    Heck, with VBA you could copy nothing BUT formatting...literally ignore the data and just cause your formatting choices in spot to be duplicated in another.

    It can happen with on-demand macros, worksheet_activate macros, ws_change macros, ws_open...there are so many directions you can come from on this.

  10. #10
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: How to copy cell formatting accross sheets.

    So IT IS POSSIBLE to copy formatting within a cell that contains a FORMULA, in SEVERAL WAYS?
    No - A cell containing a formula can have one and only one formatting. You cannot have part of the results one color and part another color (or bold or italic).

+ 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