johnny6
06-07-2012, 03:47 AM
Hello all,
I have a Word document (MS Office 2007) with some VBA behind it that loads a userform when run, takes input from the user, and returns a formatted document.
I recently moved the document from a Windows XP machines where it works fine to a Windows 7 machine (with the same version of Office) and now when I run it I get the error message:
Could not load some objects because they are not available on this machine.
Debug takes me to the autonew() Sub routine:
Sub autonew()
'
'
UserForm1.Show
End Sub
With UserForm1.Show highlighted.
Searching the internet I have found a couple possible causes. One being that some controls are not in plays on the Windows 7 machine. I checked the controls checked in the "Additional Controls" Toolbox option and they are the same on both machines. The listed DLL that they use (C:\WINDOWS\system32\FM20.DLL) is also in place on both machines.
I also read that the reference libraries might not be the same on both machines. I verified that, in the VBA editor under Tools -> References, all of the same references were selected on both machines.
I read about registering the DLLs with the operating system by using the REGSVR32 command but I do not have admin access on the computers so I will need to get someone else to help me with that.
If anyone has any information that might help me, I would appreciate it. I spoke to an admin briefly yesterday and he said it sounded like some piece of software that is needed wasn't put onto the Windows 7 machine but we are not sure what that software might be.
Thanks for your time!
I have a Word document (MS Office 2007) with some VBA behind it that loads a userform when run, takes input from the user, and returns a formatted document.
I recently moved the document from a Windows XP machines where it works fine to a Windows 7 machine (with the same version of Office) and now when I run it I get the error message:
Could not load some objects because they are not available on this machine.
Debug takes me to the autonew() Sub routine:
Sub autonew()
'
'
UserForm1.Show
End Sub
With UserForm1.Show highlighted.
Searching the internet I have found a couple possible causes. One being that some controls are not in plays on the Windows 7 machine. I checked the controls checked in the "Additional Controls" Toolbox option and they are the same on both machines. The listed DLL that they use (C:\WINDOWS\system32\FM20.DLL) is also in place on both machines.
I also read that the reference libraries might not be the same on both machines. I verified that, in the VBA editor under Tools -> References, all of the same references were selected on both machines.
I read about registering the DLLs with the operating system by using the REGSVR32 command but I do not have admin access on the computers so I will need to get someone else to help me with that.
If anyone has any information that might help me, I would appreciate it. I spoke to an admin briefly yesterday and he said it sounded like some piece of software that is needed wasn't put onto the Windows 7 machine but we are not sure what that software might be.
Thanks for your time!