+ Reply to Thread
Results 1 to 2 of 2

msgbox: Argument not optional

  1. #1
    Registered User
    Join Date
    11-16-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    11

    msgbox: Argument not optional

    Hi,

    I want a msgbox to appear if there are blank cells in a range,
    the code below is nearly there, however with teh msgbox I receive:
    'Compile Error: Argument not optional'.
    Many thanks in advance



    Please Login or Register  to view this content.
    End Sub

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: msgbox: Argument not optional

    Hi,

    You need to use " rather than ' to indicate the start and end of the string.
    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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