+ Reply to Thread
Results 1 to 4 of 4

Changing font size based on text in cell (not numerical value)

  1. #1
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Changing font size based on text in cell (not numerical value)

    Hi all,
    I have this vba to change the font size based on cell value, but I need the font size to change if the cell contains "Writing" (there will be other words before and after), how do I do this?

    Kind Regards

    Luke
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Changing font size based on text in cell (not numerical value)

    use this
    Please Login or Register  to view this content.
    Kamboj
    _________________________________________________________________________________
    Mark the thread as SOLVED if my answer satisfy you.

  3. #3
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Re: Changing font size based on text in cell (not numerical value)

    Hi Kamboj,
    I tried it as a private sub but couldn't it to work, I then tried it as a normal sub and ran it as a macro got a syntax error on:
    Please Login or Register  to view this content.
    Can I just check, would the vba you've given adjust the font size automatically if the cell contents are changed?

    Many thanks

    Luke

  4. #4
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Changing font size based on text in cell (not numerical value)

    Sorry I forgot or statement
    use this
    Please Login or Register  to view this content.

+ 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. Macro to Change Font Size Based on if Cell Contains Specific Text
    By karpfy19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2016, 08:12 PM
  2. [SOLVED] Simple VBA Header, Changing Font and Size of Text
    By TheLaughingMan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2013, 03:35 PM
  3. [SOLVED] Automatically conditionally format font size based on text length
    By rh2705 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2012, 10:47 PM
  4. Replies: 5
    Last Post: 04-22-2011, 10:21 AM
  5. Button changing size and font size
    By jennyc2 in forum Excel General
    Replies: 1
    Last Post: 05-13-2009, 07:53 PM
  6. Changing font size in a range based on cell value
    By svaiskau in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2007, 11:39 AM
  7. Changing font size of drop down box linked to cell
    By gharris172 in forum Excel General
    Replies: 1
    Last Post: 01-30-2006, 09:10 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