+ Reply to Thread
Results 1 to 5 of 5

disable all menus

  1. #1
    Registered User
    Join Date
    12-19-2008
    Location
    Vancouver,WA
    MS-Off Ver
    2007 Excel
    Posts
    87

    disable all menus

    http://www.excelforum.com/excel-prog...-no-menus.html

    Under Private Sub Workbook_Beforeclose (Cancel As Boolean)
    Line starting with; IntResponse, At location 68, "Save "_
    It tags an error on the Underscore after save. When I elimanate the Underscore it takes it. Is this OK?

    Alsoa couple of lines down from the above lines The line that starts with If IntResponse = At the end; Save and file It tags these three words and says; Sub or Function not defined.

    Can You Help.

    Thanks
    Last edited by VBA Noob; 12-27-2008 at 11:55 AM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    12-19-2008
    Location
    Vancouver,WA
    MS-Off Ver
    2007 Excel
    Posts
    87

    Thanks

    Sorry I am new at this

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello amsanborn,

    It looks like you are reffering to this line of coed...
    Please Login or Register  to view this content.
    The underscaore character is used for line continuation. You don't have to use it. It exists to make the code easier to read. You can string it together on one line like this...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Here's an alternative example
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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