+ Reply to Thread
Results 1 to 8 of 8

Font size in msg box

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Font size in msg box

    I have created a "splash screen" msg box, i have made the title in this msg box, but within this message box there is 2 sections one for the week and one for the month, whihc shows sales, qtys and profit, basically its a summary of the report they are about to view.

    What i want to do is have something a little like this within the msg box

    Week

    Sales £10,000
    Qty 6,000
    Profit £2,200

    Month

    Sales £50,000
    Qty 21,000
    Profit £9,400

    below is what i have and i dont know how to change the numbers to accomodate the commas or change the sub heading to bold

    Week

    Sales £10000
    Qty 6000
    Profit £2200

    Month

    Sales £50000
    Qty 21000
    Profit £9400

    Does anyone know if this is possible within my code to create? My code is currently......

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Font size in msg box

    I'm afraid not, you'll need to use a userform

  3. #3
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Font size in msg box

    Ah I was afraid this was the answer :-(

    I understand I can put labels in the userform and then alter the font and size, but I couldn't get my formulas to work, which is why I used the msg box, using the code above would not work in the userform

    Thanks for your reply

    Dan

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Font size in msg box

    Sure they would Post your code for the userform with your formulas

  5. #5
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Font size in msg box

    Hi

    Ok this works but only when i enter through the text boxes in the userform, i have tried the code in enter, beforeupdate and afterupdate, and it doesnt automatically show when the userform opens.

    What should i be using after textbox1_????

    I dont want to make the user have to enter through i just want it to pop up as a message when the workbook opens, which it does, and then dissapear when they click ok, which it does, but the text doesnt display unless they click into the text box?

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Font size in msg box

    Where did the textbox come from?

  7. #7
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Font size in msg box

    in the user form i used a label to get my sub heading (week)

    then added a text box to get put the code in? is this the wrong approach?

  8. #8
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Font size in msg box

    Sorry, i put the code into userform_initialise wasnt thinking about it earlier :-)

    Thanks for your help works perfectly now!

    Dan

+ 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] 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
  2. Replies: 15
    Last Post: 05-31-2012, 10:34 AM
  3. Replies: 3
    Last Post: 07-06-2011, 01:30 PM
  4. Replies: 5
    Last Post: 04-22-2011, 10:21 AM
  5. Dropdown list for font size, font type and number formats
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2005, 01:06 PM

Tags for this Thread

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