+ Reply to Thread
Results 1 to 9 of 9

Cell contains bold / non-bold characters: Link on the cell shall be formatted identically

  1. #1
    Registered User
    Join Date
    12-25-2017
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    25

    Question Cell contains bold / non-bold characters: Link on the cell shall be formatted identically

    Hello,

    cell A1 contains the fix value Grasshopper ("shop" in bold)

    Cell B2 contains the formula "=A1"

    Is it possible to get Grasshopper also in B2 by modification of the formula in B2 or using another technique?

    Thank you in advance for your help

    Florian

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cell contains bold / non-bold characters: Link on the cell shall be formatted identica

    Are you prepared to use VBA?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    12-25-2017
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    25

    Re: Cell contains bold / non-bold characters: Link on the cell shall be formatted identica

    Yes, I am (I know how to implement VBA code into the VBA editor and apply/run the resulting macros)

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cell contains bold / non-bold characters: Link on the cell shall be formatted identica

    Is this a requirement for only one cell?
    OR are you wanting something that will work for any cell containing formula like =A1

    If your requirements are not that simple, please provide details
    thank you

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cell contains bold / non-bold characters: Link on the cell shall be formatted identica

    The VBA below does exactly what you requested (and nothing more)
    - type anything into cell A1
    - format some of the text as bold
    - cell B2 immediately mirrors A1

    Place in sheet module:
    Please Login or Register  to view this content.
    More cells can be added within the same sheet with further line immediately below Call MatchBold ...

    Comment
    - as it stands, I cannot see how this is adding a lot of value (you could simply type directly into cell B2 )
    - perhaps you want to do more than is specified in your first post
    - if so, let me know
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-25-2017
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    25

    Re: Cell contains bold / non-bold characters: Link on the cell shall be formatted identica

    Hi kev_

    your macro seems to work fine; thank you very much for this.

    Indeed, my need is to use the functionality anywhere in a sheet (e.g. as a customized worksheet function or similar).

    Possible?

    Regards

    Florian

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cell contains bold / non-bold characters: Link on the cell shall be formatted identica

    A UDF (user defined function) returns a value and cannot format
    (It behaves exactly the same as Excel's in-built functions in that respect)
    I will post something that can give you similar capability shortly

  8. #8
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cell contains bold / non-bold characters: Link on the cell shall be formatted identica

    It is complicated because it is dynamic

    Try in attached workbook

    Cells previously set up are automatically updated
    - Enter text in A1 and A2 of "Sheet A" and make some of the text bold
    - cells B2 and C6 now contain mirror text
    - that is because they are on list in sheet "MasterList"
    - cell addresses are dynamic (to allow rows & columns to be inserted\deleted) because of generated cell reference formula:
    =ADDRESS(ROW('Sheet A'!$A$1),COLUMN('Sheet A'!$A$1))
    - sheet names are NOT dynamic
    - after testing, sheet MasterList should be hidden

    Add another cell to that list like this
    - select a cell that is the mirror (like B2)
    - use shortcut {CTRL}{SHIFT} B
    - select the originating cell (like A1) with mouse or enter cell reference in box
    - hit "OK"
    - check master list to confirm updated
    - the 2 cells can be in different sheets

    Does this give you what you want?

    In ThisWorkbook module
    Please Login or Register  to view this content.

    In standard module
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kev_; 03-23-2018 at 07:12 AM.

  9. #9
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cell contains bold / non-bold characters: Link on the cell shall be formatted identica

    Have you lost interest in this thread?
    Or found a different solution?

    If you have a solution please post it
    thanks

+ 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. [SOLVED] When clicking cell within range, make it bold. If already bold, make it not bold
    By jokris in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2016, 07:12 PM
  2. [SOLVED] Use a macro to make specific cell characters bold
    By avendi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2016, 07:58 AM
  3. [SOLVED] How to bold specific characters in a cell using VBA or replace function in excel?
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-11-2016, 11:14 PM
  4. [SOLVED] SUM if Bold UDF to Ignore Bold Formatted Text
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2015, 01:15 PM
  5. Separating Bold from After-Bold Parts of Cell Strings
    By mlexcelhelpforum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2012, 07:11 AM
  6. Join bold and non-bold text in one cell
    By bkincaid in forum Excel General
    Replies: 3
    Last Post: 03-20-2006, 09:10 PM
  7. [SOLVED] How do you make some characters in a cell bold and some not?
    By tracman in forum Excel General
    Replies: 4
    Last Post: 03-28-2005, 01:06 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