Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Multiuse (Single Instance) or Single Use (Multiple Instances)

I don't know why you are getting that error, normally there shouldn't be any
problem to run that code with any version of Excel installed. It worked
fine for me with 2007.

However, as I mentioned before, nothing has changed as regards instancing
with Excel 2007 vs earlier versions.

Regards,
Peter T

"Jayashree Krishna" wrote in
message ...
Sorry for the delayed reply peter.
I ran the code that you sent as an Excel VBA .I got the error "Microsoft
excel encountered problem and need to close..."

On using createObject inside VBA , the excel application freezes and
close.
I know the reason is because of the Multiuse (Single Instance) or Single
Use
(Multiple Instances). I want to know what has changed the system ,that had
earlier allowed to create many instances of excel, to restrict using only
one
ionstance. Multiuse (Single Instance)
Thanks,
Krishna


"Peter T" wrote:

Nothing has changed as regards instancing with Excel 2007. Try this in
any
app that supports VB/A, even Excel

Sub test()
Dim i As Long
Dim objXL As Object

For i = 1 To 3
Set objXL = CreateObject("excel.application")

With objXL
.WindowState = -4143 ' xlNormal
.Left = i * 50
.Top = i * 50
.workbooks.Add
.Visible = True
End With
Next

End Sub

Some of our VBA application that used createObject doesn't work


Describe what you mean by "doesn't work"

Regards,
Peter T

"Jayashree Krishna" wrote in
message ...
Hi,

Some of our VBA application that used createObject doesn't work . Then
we
found about the below points from Microsoft and made it to work using
getObject.
"COM servers can be classified as Multiuse (Single Instance) or Single
Use
(Multiple Instances), depending on the number of instances of that
server
that can run simultaneously on a single computer. "

We haven't changed anything in the OS, except upgrading Excel 2003 to
Excel
2007.Can you let me know what might have made the system to switch from
Single Use (Multiple Instances) to Multiuse (Single Instance)
automatically ? Is there any software or property to make the system
Single
Use (Multiple Instances) or Multiuse (Single Instance)

Thanks,
Krishna



.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Single Excel instance with multiple windows BrianB Excel Discussion (Misc queries) 0 March 2nd 10 06:41 PM
Sumproduct, single criteria identified within multiple in single c Monte Excel Discussion (Misc queries) 4 July 18th 09 11:21 PM
Printing single pages from multiple worksheets in a single print job [email protected] Excel Discussion (Misc queries) 2 April 27th 07 06:11 PM
Find Multiple instances of Single Criterion in Row & Return To a Single Col Sam via OfficeKB.com Excel Worksheet Functions 16 May 10th 06 03:00 AM
Ensure single class instance but with multiple references to it [email protected] Excel Programming 4 January 6th 06 02:31 AM


All times are GMT +1. The time now is 01:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"