+ Reply to Thread
Results 1 to 5 of 5

Not getting correct output in message

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Not getting correct output in message

    Hello friends,

    I used a input box to enter the number of month to filter which is working fine.
    I set the filtermonth as string

    I want a message at the end of macro as follows:
    Wrong message getting now:
    Congratulation! The birthday list of 8 August is ready.
    Correct message output require:
    Congratulation! The birthday list of August is ready.

    Please Login or Register  to view this content.
    But now I’m getting a month number as well as month name in the message. I don’t want the month number in the message. I want only the month name in the message.

    Thanking you,
    Sincerely,

    mso3

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Not getting correct output in message

    Remove this part,
    Please Login or Register  to view this content.
    and if you want the month name based on what the user has entered use this.
    Please Login or Register  to view this content.
    So.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Not getting correct output in message

    Try something like this
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Not getting correct output in message

    I keep forgetting about MonthName, Norie.
    Thanks for the reminder.

  5. #5
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Not getting correct output in message

    Hi Norie and Ron,
    Norie, Perfect! It's working fine.

    Ron, No, It's showing wrong month. Don't mind. My problem is solved.

    Thank you to both of you.

    Have a nice day.

+ 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] Help to get correct output of superscript
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2014, 07:56 AM
  2. Require correct format of output
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-12-2014, 08:49 AM
  3. No correct output
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-27-2014, 11:40 PM
  4. [SOLVED] Not getting correct output problem
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-19-2014, 08:44 AM
  5. [SOLVED] Not getting correct output value( Label & (i-6) & .Top)
    By annpricks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2012, 03:44 AM
  6. Find and output correct path
    By 9437excel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2011, 02:20 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