+ Reply to Thread
Results 1 to 9 of 9

Linking Font Size Changes

  1. #1
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Linking Font Size Changes

    This probably sounds really weird, but does anyone know whether the size of the text in Cell A1 on Sheet 1 can be linked to the size of the text in Cell B2 on Sheet 2? Like, when I change the size of Cell A1's text, is there a way to have the size of Cell B2's text change as well? Any thoughts are appreciated. -Juda
    Last edited by swordswinger710; 01-14-2009 at 03:17 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try this event macro in sheet 2

    Right click sheet 2 > view code > paste in the below.
    When you activate sheet 2 is takes Sheet 1 Range A1 font size

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845
    Thanks, that works, but I need Cell B2 to display the the value of Cell A1 with its font size right after it's entered on Sheet 1. Is that an option?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Just put
    =Sheet1!A1
    in sheet 2.

    More efficent to have the font update once then everytime it's changed

    VBA Noob

  5. #5
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845
    Here's the whole picture. I attached a copy of my workbook. The first sheet is where my data goes. From there, it is linked to many other sheets. I need the font size to be linked as well as the data. What is the best thing to do? Thanks, Juda
    Last edited by swordswinger710; 01-27-2009 at 04:49 PM.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    I still don't understand the need.

    If I was you I would link the cells with the formula as suggested then use a macro to stop the user changing the font size in the first sheet and job done.

    VBA Noob

  7. #7
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845
    OK, I'll try to explain myself a little better. The Data Entry Sheet is where I enter my data. I already have these cells linked to the correct places on the other sheets. You will notice that I use merged cells of varying lengths to show the user entering data how many digits can be entered before exceeding the width of the linked cells on the other sheets.

    The problem, however, arises when more digits than usual need to be entered, and in order for all the information to be displayed correctly, the font size needs to be changed right there on the Data Entry Sheet.

    So, once the user is satisfied with the way the information is displayed on the Data Entry Sheet, he/she can simply go to any of the other sheets, and the size of the digits in the linked cells that were changed on the Data Entry Sheet are the same size here.

    I hope I was clear enough - if you have any other questions I'll be happy to answer them. -Juda

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Merge cells and macro's rarely work well.

    If you get the layout correct then you could take a look at format > cells > alignment tab > Shrink to fit

    If you still need a macro post back

    VBA Noob

  9. #9
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845
    Hey! I had no idea that 'format > cells > alignment tab > Shrink to fit' existed! Here I thought I'd need some huge fancy macro. Wow. That's all I needed, thanks a million! -Juda

    PS - Keep up the great work!

+ 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