+ Reply to Thread
Results 1 to 2 of 2

Macros only working if I run as ADMIN

Hybrid View

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    Greenfield, IN
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macros only working if I run as ADMIN

    I have a Windows 7 - 64 bit machine running Office 2007. IN Excel, I am using a template in a spreadsheet that automatically populates field in a web page after you log on. THis program has always worked good until getting this new system. Now, the only way to tun this Macro in this spreadsheet is to open Excel as an admin and load the program. When I do this, thetre are no troubles. The part of the code that it stops at during the Debug is:
    Private Sub WaitForIEReady()
      Do While m_IE.busy: DoEvents:  Loop
      Do While m_IE.readyState <> 4: DoEvents: Loop
      Do While m_IE.document Is Nothing: DoEvents: Loop
      Do While m_IE.document.readyState <> "complete": DoEvents: Loop
      Sleep 200
    End Sub

    If anyone has any suggestions or has seen this before, let me know. Running this as an ADMIN is not an option because I have over 100 people using this spreadsheet. Yes all my security setting are correct, I believe. I have enabled VB project and enablesd all macros.

    Thanks,
    Last edited by royUK; 08-12-2010 at 09:30 AM.

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

    Re: Macros only working if I run as ADMIN

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    ADDED THIS TIME
    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