+ Reply to Thread
Results 1 to 14 of 14

Msgbox not big enough

  1. #1
    Registered User
    Join Date
    09-02-2019
    Location
    Paris
    MS-Off Ver
    Mac Excel version 16.25
    Posts
    14

    Msgbox not big enough

    Hello,

    In my excel table, I have a column of cells that contain a lot of data. And I use VBA to make a msgbox pop-up when I click on that particular column of cells, to show the content of the cells.

    However, some of the cells contain data that exceeds 1024 characters and somehow the Msgbox is not big enough to display everything.

    Would there be any alternative for this? I am using a Mac so it is not convenient to edit a userfrom, apart from Userform and msgbox, is there any other simple way I can display the content of the cells upon clicking on them?

    Thanks in advance.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Msgbox not big enough

    Use a textbox autoshape?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    09-02-2019
    Location
    Paris
    MS-Off Ver
    Mac Excel version 16.25
    Posts
    14

    Re: Msgbox not big enough

    Thank you for your idea. How does a textbook autoshape work exactly?

  4. #4
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Msgbox not big enough

    Try this
    Please Login or Register  to view this content.
    ❖ Please mark your thread is SOLVED if there has been offered a solution that works fine for you.

    ❖ If you like solutions provided by anyone, feel free to add reputation by clicking on ✶ Add Reputation bottom left of their posts.

  5. #5
    Registered User
    Join Date
    09-02-2019
    Location
    Paris
    MS-Off Ver
    Mac Excel version 16.25
    Posts
    14

    Re: Msgbox not big enough

    Sorry, I tried but same, I am not quite sure how to make this work...

  6. #6
    Registered User
    Join Date
    09-02-2019
    Location
    Paris
    MS-Off Ver
    Mac Excel version 16.25
    Posts
    14

    Re: Msgbox not big enough

    Hi, please could you enlighten me on how to apply your suggestion? I have been searching on the internet about Application.Assistant.DoAlert, but it happens that there aren't many ressources about how to put this method into use. Thank you so so much.

  7. #7
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Msgbox not big enough

    Pass your string or values like so


    Please Login or Register  to view this content.

  8. #8
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Msgbox not big enough

    try this - change range to suit
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-02-2019
    Location
    Paris
    MS-Off Ver
    Mac Excel version 16.25
    Posts
    14

    Re: Msgbox not big enough

    Thank you for your reply!
    However, I get this error when I run the code...
    Attached Images Attached Images

  10. #10
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Msgbox not big enough

    Hi, give me 10 minutes and I'll try sort something

  11. #11
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Msgbox not big enough

    Id say userform best option - Userform with one label
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    09-02-2019
    Location
    Paris
    MS-Off Ver
    Mac Excel version 16.25
    Posts
    14

    Re: Msgbox not big enough

    Thank you so so much for your help!

    This seems to be a good idea and I succeeded to make it to work!
    However, the Userform just can't happen to resize correctly as expected. I think this is due to the format of data that I'd like to show.

    All the cells that I'd like to show is more or less like this, with linebreaks...:

    "
    1.2.3.4 - Dégagé devant dedans dehors demi-plié première

    idem seconde

    idem derrière

    5.6.7.8 - cambré

    idem en dedans

    "

  13. #13
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Msgbox not big enough

    Is it line breaks you want to remove??

    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    09-02-2019
    Location
    Paris
    MS-Off Ver
    Mac Excel version 16.25
    Posts
    14

    Re: Msgbox not big enough

    I have been trying to apply the code that you've written and it finally worked! thank you SO SO MUCH!!!!!

+ 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] MsgBox appears when cancelled and another MsgBox appears when successful
    By poizones in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-27-2018, 04:37 AM
  2. Excel VBA - replace excel msgbox with self msgbox
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-24-2017, 02:34 PM
  3. Macro to capture MsgBox prompt to a string variable but ignore the MsgBox
    By BuglerDobbs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2015, 10:56 AM
  4. MsgBox with VB
    By imrvlad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2013, 12:16 PM
  5. [SOLVED] Problem with VBA Editor uses lower case on some lines (ex. msgbox instead of MsgBox)
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2013, 06:59 PM
  6. MsgBox-center the message on a msgbox
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2007, 06:48 AM
  7. [SOLVED] MsgBox-at the end a msgBox popup
    By CC in forum Excel General
    Replies: 4
    Last Post: 05-05-2006, 12:50 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