+ Reply to Thread
Results 1 to 5 of 5

Modification to msg box in excel vba

  1. #1
    Forum Contributor
    Join Date
    12-30-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    143

    Modification to msg box in excel vba

    Hi
    i would like to make some modification to my code here, if Anyone can help me i would greatly appreciated


    Please Login or Register  to view this content.
    #1 i'm getting an overflow error (error 6) at this code (NumRows = Range("C2", Range("C2").End(xlDown)).Rows.Count) its happening if there is only one reminder in the list

    #2 In column "D" i'm capturing the user name of the person who created the reminder, if possible to modify the code that it should only show me reminders for the user that has this workbook open, not all reminders in the reminders sheet.
    Something like (if application .user name = anything in column D then it should only show me his reminders

    thanks

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Modification to msg box in excel vba

    This should take care of the first issue. Change this
    Please Login or Register  to view this content.
    to this
    Please Login or Register  to view this content.
    You lost me on the second issue. I don't know where in the code you are referring to.

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

    Re: Modification to msg box in excel vba

    #1 Declare NumRows as Long instead of Integer.
    Please Login or Register  to view this content.
    #2 Perhaps something like this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Modification to msg box in excel vba

    @ Norie.
    Probably a typo but

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

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

    Re: Modification to msg box in excel vba

    bakerman2

    Yep, getting late here - almost nodding off.

+ 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] VB Code to get the Modification date of excel file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2016, 10:43 AM
  2. [SOLVED] Excel 2007 : Right margin size modification
    By dip11 in forum Excel General
    Replies: 1
    Last Post: 04-19-2015, 09:20 PM
  3. [SOLVED] Excel VBA modification help
    By excelismagic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-31-2015, 08:45 PM
  4. Modification in the Excel to Outlook mail
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-19-2014, 10:27 AM
  5. Excel Template modification using automation
    By Terry Holland in forum Excel General
    Replies: 1
    Last Post: 03-30-2005, 02:06 PM
  6. [SOLVED] Excel file modification date
    By GROSNER in forum Excel General
    Replies: 5
    Last Post: 03-03-2005, 10:06 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