Questions tagged [createobject]

The CreateObject function is used to instantiate COM objects.

The CreateObject function is used to instantiate COM objects.

Example (VB Late Binding):

Dim obj As Object
Set obj = CreateObject("Outlook.Application")

Example (VB Early Binding):

Dim obj As Outlook.Application
Set obj = CreateObject("Outlook.Application")

Related Tags:

Links:

154 questions
-1
votes
1 answer

E_ACCESSDENIED "General Access denied error" /CreateObject("Vbscript") blocked under office 365 VBA environment

I have recently encountered an issue running code within Access 2016 and for office 365. Our COM component that we authored stopped working with the newer versions of office. I was able to attach the debugger and confirmed that trying to create an…
-1
votes
1 answer

How to execute a MATLAB script in VBA

I want to run a MATLAB script using VBA. I tried running the following code Set Matlab = CreateObject("Matlab.Application") result = Matlab.Execute("path to the script") MsgBox (result) But it doesn't return anything in the msgbox, nor was the…
-1
votes
1 answer

.NET objects not initiated from VB6 when server get converted to Windows 2008 R2 64-bit

We have very old and complex VB6 application that initiate .NET server objects, just like that CreateObject(sClassName, sServerName). It is sucesfully working in our production server. Now we are trying to move our production to Windows 2008 R2…
-4
votes
2 answers

Is there any way to create arrays in a loop in JAVA?

I tried to create object which it's size and how many is defined by the user but there is only one array output.Is there any way to create arrays in a loop? public class Somehthing { public static void main(String[] args) { Scanner…
Cemal
  • 1
  • 1
1 2 3
10
11