+ Reply to Thread
Results 1 to 5 of 5

Run time error 13 Unable to call User Form

  1. #1
    Registered User
    Join Date
    03-11-2011
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    17

    Run time error 13 Unable to call User Form

    I have a number of user forms within a holiday request worksheet and all work OK until I enter a condition to the code,
    Please Login or Register  to view this content.
    User form1 is called from selecting any cell in range A5:A21 (User Names)
    Userform2 is called from selecting any cell in range AE5:AE21 (Approval)
    If I run this code for userform1 it calls the form, but I get the Run time error 13 when I select any other cell not specified within the range.
    If I use the’ On error exit’ function then this is not an issue but this does not then allow me to call Userform2
    Range (“E1”) is the current user so what I’m trying to achieve is that only the current user has access to request there own holidays.

    Thanks in Advance
    Last edited by Spagbog; 09-14-2011 at 07:23 AM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Run time error 13 Unable to call User Form

    This part will error if Target is a more than one cell.
    Please Login or Register  to view this content.
    Do you mean "if Target is cell E1 then"
    Please Login or Register  to view this content.
    or do you mean "if Target is a single cell whose value equals the value of E1 then"
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    03-11-2011
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Run time error 13 Unable to call User Form

    Hi mikerickson
    Apologies for confusion, the Target is a single cell whose value equals the value of E1,I would like this cell only to call form.
    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Run time error 13 Unable to call User Form

    can u upload the file?

  5. #5
    Registered User
    Join Date
    03-11-2011
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Run time error 13 Unable to call User Form

    Hi Guys

    'Username' any name from under January heading,( Password 'aaa')
    I have the offending code running for January,If I select any name under the approval heading runtime error,the same error appears on the headings and E1,any questions let me know.
    Thanks for taking the time to look.
    Spagbog
    Last edited by Spagbog; 09-14-2011 at 07:21 AM. Reason: solved

+ 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