+ Reply to Thread
Results 1 to 6 of 6

error msg in VBA, ambiguous name that locks Excel

  1. #1
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    error msg in VBA, ambiguous name that locks Excel

    I was naming my textboxes in a UserForm in Excel VBA and mis-typed the name and got this msg
    "could not set the name property, ambiguous name"

    ....and then it locked Excel and I cannot click on anything,

    ERRRG.....not even the save button.

    Is there a way to free up the screen so that I can save my worksheet?
    Last edited by romperstomper; 03-23-2011 at 09:21 AM. Reason: mark solved
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: error msg in VBA, ambiguous name that locks Excel

    Is it for a form? If so, exit the form by clicking the x at the top corner and it should free up the workbook.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: error msg in VBA, ambiguous name that locks Excel

    I was in the VBA editor and naming my textboxes on a UserForm, mis-typed and it locked up and my cursor turned into a "no" symbol and it wouldn't let me click on anything...not even the msg window's red x to close the window.

    Not all was lost though, Excel automatically saved at some point and saved my worksheet up to a point. I didn't get to keep all of my work, but most of it..everything after the point of autosave to when it locked up was gone.
    Last edited by jwright650; 01-08-2011 at 03:40 PM. Reason: speeling...LOL

  4. #4
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: error msg in VBA, ambiguous name that locks Excel

    Thread is "Solved", was able to recover most of my work with the autosave feature.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: error msg in VBA, ambiguous name that locks Excel

    That's happened to me before, Excel 2010's automatic save is great in situations like this.

    I try to save every time I've completed a something in the VB Editor
    Hope that helps.

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

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    06-17-2013
    Location
    London England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: error msg in VBA, ambiguous name that locks Excel

    Press Ctrl, Alt and Esc together.

    After reading this thread, felt a little despondent. This sorted the problem out, didn't loose anything and kept on working.

+ 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