+ Reply to Thread
Results 1 to 5 of 5

vb error compile error Expected End with

  1. #1
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Question vb error compile error Expected End with

    So with a lot of help, I have added a calendar to a userform, however, now when I test the userform to make sure it works, I get an error that reads "COMPILE ERROR: EXPECTED END WITH" as soon as I hit Submit.

    I am not sure how to fix this, any suggestions would be appreciated? I would copy the code, but as I am not sure where the error is derived from I don't believe copy all the code would be beneficial.
    Last edited by 00Able; 11-28-2010 at 08:07 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: vb error compile error Expected End with

    Please Login or Register  to view this content.
    where is the End with?

  3. #3
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: vb error compile error Expected End with

    Hi

    You need to complete any With statement with and End With statement after your last line of relevant code.

    Regards

    Jeff

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: vb error compile error Expected End with

    Hi

    In the click event of the cmdSubmitEntry buttton, end the code with an 'End With' statement after the .txtDate.SetFocus line.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Contributor 00Able's Avatar
    Join Date
    11-17-2010
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    244

    Re: vb error compile error Expected End with

    Thanks, Ok I finished that, and now I got another issue...new thread...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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