+ Reply to Thread
Results 1 to 16 of 16

Problem loading userform on 'some' computers

  1. #1
    Registered User
    Join Date
    02-13-2010
    Location
    West Midlands
    MS-Off Ver
    Excel 2010
    Posts
    15

    Exclamation Problem loading userform on 'some' computers

    I have 10 computers that are running Windows 7 and Excel 2010.

    I have a spreadsheet that loads a userform when opened.

    The userform loads correctly on 6 of the machines but on the other 4 I get the below errors

    untitled.JPG

    The module it is mentioning is

    Please Login or Register  to view this content.
    I cant understand why it works on some machines but not others??

    Anyone got an idea as to how I can fix this issue?

    Thanks in advance

    Mike

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

    Re: Problem loading userform on 'some' computers

    Are the bad machines Macs that are using Excel 2008?
    If so, VBA and userforms are not supported.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Problem loading userform on 'some' computers

    Mike

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    02-13-2010
    Location
    West Midlands
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problem loading userform on 'some' computers

    Quote Originally Posted by mikerickson View Post
    Are the bad machines Macs that are using Excel 2008?
    If so, VBA and userforms are not supported.
    No they are running Excel 2010 as well!

  5. #5
    Registered User
    Join Date
    02-13-2010
    Location
    West Midlands
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problem loading userform on 'some' computers

    Quote Originally Posted by mikerickson View Post
    Are the bad machines Macs that are using Excel 2008?
    If so, VBA and userforms are not supported.
    The file is 4.17mb so it says its too large

  6. #6
    Registered User
    Join Date
    02-13-2010
    Location
    West Midlands
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problem loading userform on 'some' computers

    Managed to zip it so it uploaded.

    It will error as it looks up a list of users
    Attached Files Attached Files

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Problem loading userform on 'some' computers

    There's no userform called Calendar1 in the workbook.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Problem loading userform on 'some' computers

    Sorry, Calender1.

  9. #9
    Registered User
    Join Date
    02-13-2010
    Location
    West Midlands
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problem loading userform on 'some' computers

    Quote Originally Posted by Norie View Post
    There's no userform called Calendar1 in the workbook.
    Norie

    I know but that isn't causing me a problem when loading the file.

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Problem loading userform on 'some' computers

    Mike

    In the code you posted the only userform referred to is named Calender1 so I kind of thought that was where the error was.

    What the error message is indicating, as far as I can see anyway, is that there's some control on that userform that isn't available to the user so it can't be loaded.

  11. #11
    Registered User
    Join Date
    02-13-2010
    Location
    West Midlands
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problem loading userform on 'some' computers

    Norie

    I think its something to do with the usernamewindows() function, or at least the API call for the function. I just cant get my head around it

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Problem loading userform on 'some' computers

    The error is about not being able to load an 'object', there are no objects used or referred to in UserNameWindows.

    If there was an error in that function I would expect it to be something to do with not being able to find the API referred to.

    Can you try opening the workbook on one of the computers having the problem and going to Tools>References...?

    Is there anything marked as MISSING?

  13. #13
    Registered User
    Join Date
    02-13-2010
    Location
    West Midlands
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problem loading userform on 'some' computers

    Norie

    Where is the Tools menu to select references in Excel 2010?

    Its been a long day

  14. #14
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Problem loading userform on 'some' computers

    On the main toolbar in the VBE (Visual Basic Environment - ALT+F11, ALT+T+R).

  15. #15
    Registered User
    Join Date
    02-13-2010
    Location
    West Midlands
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Problem loading userform on 'some' computers

    Microsoft Windows Common Controls-2 6.0 (SP6) is showing as missing.

    You think that could be the issue, if so how do I fix it?

  16. #16
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Problem loading userform on 'some' computers

    I think you need to find out if you are using any controls from that library before you do anything.

    Look for things like ListView, ImageCombo, ProgressBar, Slider..., basically anything not in the standard Control Toolbox.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Loading userform
    By tian0020 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2007, 01:57 AM
  2. Loading a Userform
    By Jason Zischke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2006, 04:40 AM
  3. [SOLVED] Loading website from userform
    By Danny Boy via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2006, 12:15 PM
  4. [SOLVED] Loading Userform
    By Steven Cheng in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2005, 03:20 PM
  5. [SOLVED] Loading UserForm gives error
    By Mats Samson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2005, 04:05 AM

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