+ Reply to Thread
Results 1 to 3 of 3

Change font size with VBA

  1. #1
    Registered User
    Join Date
    11-11-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Change font size with VBA

    Hi Guys! I have been working a spreadsheet for while now and it is almost perfect. I am using the formula below to change the font size of text that is 3 characters long or less (Ex: RON, MX, TBA) and it works perfectly, only the text is affected and not the time. I work with a 24 hr clock and text in all of my workbooks. My time is formatted to display as 4 digits ex: 1332 the only words i use are "mx, ron, tba, a-shift, b-shift, c-shift".

    When i type in "a-shift" the code does not change the font size? Is there a way to make it so anything text with 7 characters change aswell? Thanx for any help.


    Please Login or Register  to view this content.
    Last edited by jpaez82; 11-11-2014 at 10:56 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Change font size with VBA

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Registered User
    Join Date
    11-11-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Re: Change font size with VBA

    Oops. Sorry about that.

+ 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. How to using comma style without change font & font size
    By rameshtupe in forum Excel General
    Replies: 1
    Last Post: 07-11-2013, 01:19 PM
  2. [SOLVED] Change default font and font size on COMMENTS in cells
    By Thistledown in forum Excel General
    Replies: 4
    Last Post: 11-23-2012, 09:26 AM
  3. How to change the font/font size in a combo box
    By brendas in forum Excel General
    Replies: 2
    Last Post: 11-07-2005, 04:00 PM
  4. [SOLVED] font is 10 pt:how do i change the font size in a combo box?
    By nkruppa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2005, 05:05 PM

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