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
vote
0 answers

CreateObject("System.Collections.Queue") generates Run-time error '-2146232576 (80131700)': Automation error

This macro is supposed to count and delete duplicates displaying the number of duplicates to the right of the word It stops at line Set words = CreateObject("System.Collections.Queue"). Run-time error '-2146232576 (80131700)': Automation…
sdpitzer
  • 11
  • 4
1
vote
2 answers

How to consume COM object in ASP.NET class file

I have a COM object that I am trying to wrap in a C# class in order to make it more readily available for other applications that wish to consume it. I have the following code that creates an instance of the COM object, and then using reflection…
Jagd
  • 6,909
  • 20
  • 70
  • 105
1
vote
1 answer

Javascript create an Object based on specific Class Properties

I want to instantiate an Object with existing Properties of the current Class in an easy way. Somehow I still couldn't find an answer on the Net. This is how I would expect it to be. Please provide me an easy Answer if there is any. class user { …
1
vote
1 answer

creating automation object (COM) takes lot of time

Using UFT 12.02, I recently encountered this peculiar issue which wasn't earlier. Whenever I try to create an automation object, UFT takes exponentially lot of time to execute it. Set WinReplay = CreateObject("Mercury.DeviceReplay") Set mysendkeys =…
Pranav
  • 417
  • 3
  • 18
1
vote
2 answers

VB.NET application. Create a Solidworks session using CreateObject and .UserControl = True but the session is not 100% usable for the user

I tried many things and searched a lot on the web and on this site, but I could not find a solution. I have a problems which is: I'm making an application in VB.NET that connects to Solidworks. Case 1: Solidworks is running. swApp.CreateObject…
1
vote
1 answer

VBA Word 2013: Scripting.FileSystemObject: Runtime Error 424 - object required

I'm not very firm in VBA and I've been trying to use a function under Word which I wrote in Excel some time ago. (Where it is working flawlessly!) The Function goes through a text file and returns strings after a certain (sought for) other…
budekatude
  • 341
  • 2
  • 17
1
vote
1 answer

VERY strange behavior on createobject("HTMLFILE")!

I don't understand why I'm getting this strange behavior! When creating and assigning the htmlfile object the function gives back a blank object ("nothing") and when I am running the code line by line it just runs automatically even when I don't…
jony
  • 1,380
  • 1
  • 21
  • 42
1
vote
2 answers

Out of memory error in vbs scripts

I've been facing this dialogue box just after I start my script Script: C:\konica.vbs Line: 14 Char: 1 Error: Out of Memory: 'GetObject' Code: 800A0007 Source: Microsoft VBScript runtime error This is my script: Set wshShell =…
Valeriu
  • 161
  • 1
  • 9
1
vote
0 answers

IE10 - Page Blank when window.open(trustedURL) - PDF ANGULAR JS

I tried to generate a PDF since data returned from API. All working find exept for IE 10, Edge which open a blank window ! I dont know what happening... Controller function : (fileRequest = User.getFile($rootScope.PARAMS, 'facture',…
1
vote
1 answer

CreateObject randomly fails since recent windows security update that does not seem related

We use MSWC.BrowserType (browscap.dll) in our classic asp website to help identify user agents. Since July 21 our code began to throw Server.CreateObject failed errors when trying to create this object. It works most of the time, but randomly fails…
Jonathan
  • 1,086
  • 7
  • 31
1
vote
1 answer

MS Access application opened from Python script can't quit if Tk() loop is called

I have stucked with a specific problem. I am working on Python script which reads data from MS Access database (.mdb) using VBA API and displays it in GUI tables using tkintertable module. The problem is that after script terminates the MSACCESS.exe…
Alexander Samoylov
  • 1,290
  • 1
  • 15
  • 20
1
vote
2 answers

adding stock data to amibroker using c#

I have had a hard time getting and answer to this and i would really , really appreciate some help on this. i have been on this for over 2 weeks without headway. i want to use c# to add a line of stock data to amibroker but i just cant find a CLEAR…
femi
  • 948
  • 2
  • 10
  • 39
1
vote
3 answers

Using VS 2008 (vb.net) I need to create an object I can use in Classic ASP with CreateObject

I am very new to VB.net. I have written these objects in VB6 before. I'm just lost in VB.net, but (kicking and screaming) I have to learn how to do this. I've been googling for hours with only minor steps forward. Can anyone post a link that…
CurtTampa
  • 125
  • 2
  • 10
1
vote
3 answers

In ColdFusion which way is better to create a component object CreateObject() or EntityNew() or New keyword

I was writing some code in ColdFusion using CFC components, when I got bit confused on using different ways to create a object of a component. I would appreciate if someone please let me know which method of creating a object is…
1
vote
1 answer

Django Generic Createview : Add another object to template

I'm trying to add additional data to my template named "equipment_form" linked with my view CreateEquipment (CreateView generic django) So, my model Equipment possess a subcategory. And my model subcategory possess a category. For UX reasons, I want…