+ Reply to Thread
Results 1 to 6 of 6

Messge in a Message box not working as I would like

  1. #1
    Registered User
    Join Date
    05-03-2019
    Location
    East Yorkshire
    MS-Off Ver
    2007
    Posts
    54

    Messge in a Message box not working as I would like

    Good Afternoon..... Can someone please tell me what I need to do to this line of code for a message box to make it work please.

    Please Login or Register  to view this content.
    I can get "Record " & ThisWorkbook.Worksheets("Moorhouse").Range("RentAnchor").Offset(TargetRow, 1).Value, this bit works but not the last bit of annotation...grrrrr

    Any help would be much appreciated. Please be gentle as I am still learning....

    Thank you in advance.
    Last edited by 6StringJazzer; 12-01-2022 at 10:37 AM. Reason: Marked unanswered thread back to Unsolved. If this is SOLVED please provide your solution.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Messge in a Message box not working as I would like

    You can't build a string with commas. No idea what you are trying to do with the 0.

    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time to keep the thread moving because it was only one line. --6StringJazzer
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit Win
    Posts
    1,909

    Re: Messge in a Message box not working as I would like

    No idea what you are trying to do with the 0.
    0 is the vbExclamation icon

  4. #4
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: Messge in a Message box not working as I would like

    Then write vbExclamation

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Messge in a Message box not working as I would like

    When you show code that doesn't work, it is best to describe what result you want. I had to guess.

    If Message is your title then use this. I am not a fan of using the numbers instead of the built-in constants:

    Please Login or Register  to view this content.
    Quote Originally Posted by ByteMarks View Post
    0 is the vbExclamation icon
    Not correct. 0 is the default, and means "OK button only." To get the exclamation icon use vbExclamation, which has a value of 48.

  6. #6
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    365 32bit Win
    Posts
    1,909

    Re: Messge in a Message box not working as I would like

    Not correct. 0 is the default, and means "OK button only.
    Sorry, you're quite right.

+ 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. vb message boxes not working
    By scouse13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2020, 11:30 AM
  2. [SOLVED] Code with message for delete row is not working and other without message is working why
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2017, 01:54 PM
  3. [SOLVED] Display alert messge when a column is inserted in a range
    By Ravana in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2016, 06:58 AM
  4. [SOLVED] Error messge
    By joyrider in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2015, 12:25 AM
  5. Pop up message box not working!
    By donggri84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2014, 09:08 PM
  6. #VALUE! message for working formula
    By Consty1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2012, 04:18 PM
  7. [SOLVED] How to show messge box text in Excell work sheet
    By vishu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2005, 07:05 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