Not working excel with VBA


  1. Posts : 14
    Windows 7 Ultimate 32x
       #1

    Not working excel with VBA


    I enable administrator built in account and when logged in as other user which has also administrator rights, my excel with VBA is not working properly, if i logged in as Administrator its working fine. What can i do so my other user will also use excel just like administrator without any problem?
      My Computer


  2. Posts : 14
    Windows 7 Ultimate 32x
    Thread Starter
       #2

    Can any body help me,
    I enabled all macros in macro setting by going through File->Options -> trust center-> trust center setting
      My Computer


  3. Posts : 9,746
    Windows 7 Home Premium 64 bit sp1
       #3

    Have a look at this MS website. There is a part about using VBA & user access that might help you. There apparently a safety feature that is incorporated to prevent unauthorised access & code being changed.

    https://support.office.com/en-us/art...d-83d097397a7e

    This is not something I know anything about, but I did a web search & this I thought might help you.
      My Computer


  4. Posts : 14
    Windows 7 Ultimate 32x
    Thread Starter
       #4

    Thanx for reply, i have already done these things as mentioned in this page, but problem has not solved yet.
    Before enabling administrator account it was running fine, but after enabling admin a/c other user is not able to do work in VBA used excel sheet..........
      My Computer


  5. Posts : 1
    Windows 7 Entreprise x64
       #5

    VBA problème in windows 7


    hello
    I have an Excel VBA macro (office 2010), he worked on the Platform (Windows XP – 32), but after his migration to another system (Windows 7-64) it gives me the following compilation error: “project or library not found”
    I tried to change the location of the dll used to the folder: Windows \ SysWOW64, but it did not work, when I tested step by step I found that the source of the error is the property : EXTRA.System. ActiveSession. Screen

    Here's the code where I have the problem:
    Code:
    'Modules sur la recherche de Contrat
     
     
    Public Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
       (ByVal lpBuffer As String, nSize As Long) As Long
     
       'Public Declare Function GetUserName Lib "C:\Windows\SysWOW64\advapi32.dll" Alias "GetUserNameA" _
       '(ByVal lpBuffer As String, nSize As Long) As Long
     
    Global g_HostSettleTime%
     
     
    Public Sub Recherche_contrat()
     
    Dim Sys As Object, Sess0 As Object, MyScreen As Object, MyArea As Object
    Dim tmp$
     
       Set Sys = CreateObject("EXTRA.System")   ' Gets the system object
       g_HostSettleTime = 200     ' milliseconds
       Set Sess0 = Sys.ActiveSession
       'MsgBox ("it's work ")
       Set Myscreen0 = Sess0.screen  'ßthis is exacly the  source of problem
    End Sub
    


    If anyone can help me I would appreciate His response.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:52.
Find Us