PC Review


Reply
Thread Tools Rate Thread

What are the common problems when app cannot connect to Excel?

 
 
Jack
Guest
Posts: n/a
 
      14th Oct 2008
Hello,
I have developed the stand alone application which interacts
with Excel spreadsheet.
It works fine on most Windows and computers, but from time to time I have
message from the user that my app cannot 'find' any opened spreadsheets, but
they are opened.
I wonder, what can cause that? What should I advise user to do?
Reinstalling Excel does not help.
I am using vbasic and Excel automation.
Your comments appreciated,
Jack


 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      14th Oct 2008
You might want to post the relevant portion of the code.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Tue, 14 Oct 2008 16:00:13 -0400, "Jack" <replyto@it> wrote:

>Hello,
> I have developed the stand alone application which interacts
>with Excel spreadsheet.
>It works fine on most Windows and computers, but from time to time I have
>message from the user that my app cannot 'find' any opened spreadsheets, but
>they are opened.
>I wonder, what can cause that? What should I advise user to do?
>Reinstalling Excel does not help.
>I am using vbasic and Excel automation.
>Your comments appreciated,
>Jack
>

 
Reply With Quote
 
Jack
Guest
Posts: n/a
 
      14th Oct 2008
I do not believe it is my code related.
As I said it works 99% times.
I need to know what causes that 1% failure.
Please see below:
===============
Public WithEvents moExcelApp As Excel.Application


Set moExcelApp = GetObject(, "Excel.Application")
If moExcelApp Is Nothing Then 'when not sheet is opened
Set moExcelApp = CreateObject("Excel.Application")
If moExcelApp Is Nothing Then
Debug.Print "Excel app NOT found!"
ExcelApp = 1: Exit Sub
Else
moExcelApp.EnableEvents = True
End If
End If



"Chip Pearson" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> You might want to post the relevant portion of the code.
>
> Cordially,
> Chip Pearson
> Microsoft Most Valuable Professional
> Excel Product Group
> Pearson Software Consulting, LLC
> www.cpearson.com
> (email on web site)
>
>
> On Tue, 14 Oct 2008 16:00:13 -0400, "Jack" <replyto@it> wrote:
>
>>Hello,
>> I have developed the stand alone application which interacts
>>with Excel spreadsheet.
>>It works fine on most Windows and computers, but from time to time I have
>>message from the user that my app cannot 'find' any opened spreadsheets,
>>but
>>they are opened.
>>I wonder, what can cause that? What should I advise user to do?
>>Reinstalling Excel does not help.
>>I am using vbasic and Excel automation.
>>Your comments appreciated,
>>Jack
>>



 
Reply With Quote
 
Jack
Guest
Posts: n/a
 
      15th Oct 2008
Cordially you are, but what about my question?
Anything more to add, Chip?
Jack

"Chip Pearson" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> You might want to post the relevant portion of the code.
>
> Cordially,
> Chip Pearson
> Microsoft Most Valuable Professional
> Excel Product Group
> Pearson Software Consulting, LLC
> www.cpearson.com
> (email on web site)
>
>
> On Tue, 14 Oct 2008 16:00:13 -0400, "Jack" <replyto@it> wrote:
>
>>Hello,
>> I have developed the stand alone application which interacts
>>with Excel spreadsheet.
>>It works fine on most Windows and computers, but from time to time I have
>>message from the user that my app cannot 'find' any opened spreadsheets,
>>but
>>they are opened.
>>I wonder, what can cause that? What should I advise user to do?
>>Reinstalling Excel does not help.
>>I am using vbasic and Excel automation.
>>Your comments appreciated,
>>Jack
>>



 
Reply With Quote
 
Jack
Guest
Posts: n/a
 
      15th Oct 2008
Anyone else to pitch on that subject?
Anybody had that problem before?
I cannot believe it.
In the last 5 years, I encountered at least about 50 computers where Excel
automation did not work!
Jack

"Jack" <replyto@it> wrote in message
news:%(E-Mail Removed)...
> Hello,
> I have developed the stand alone application which interacts
> with Excel spreadsheet.
> It works fine on most Windows and computers, but from time to time I have
> message from the user that my app cannot 'find' any opened spreadsheets,
> but they are opened.
> I wonder, what can cause that? What should I advise user to do?
> Reinstalling Excel does not help.
> I am using vbasic and Excel automation.
> Your comments appreciated,
> Jack
>



 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      16th Oct 2008
Without code it's hard to speculate. Was it always consistent on each
"problem" computer ?
Antivirus SW ? Hidden open instance of Excel ?

Tim

"Jack" <replyto@it> wrote in message
news:(E-Mail Removed)...
> Anyone else to pitch on that subject?
> Anybody had that problem before?
> I cannot believe it.
> In the last 5 years, I encountered at least about 50 computers where Excel
> automation did not work!
> Jack
>
> "Jack" <replyto@it> wrote in message
> news:%(E-Mail Removed)...
>> Hello,
>> I have developed the stand alone application which interacts
>> with Excel spreadsheet.
>> It works fine on most Windows and computers, but from time to time I have
>> message from the user that my app cannot 'find' any opened spreadsheets,
>> but they are opened.
>> I wonder, what can cause that? What should I advise user to do?
>> Reinstalling Excel does not help.
>> I am using vbasic and Excel automation.
>> Your comments appreciated,
>> Jack
>>

>
>



 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      17th Oct 2008
On Oct 15, 8:16*pm, "Tim Williams" <timjwilliams at gmail dot com>
wrote:
> Without code it's hard to speculate. *Was it always consistent on each
> "problem" computer ?
> Antivirus SW ? *Hidden open instance of Excel ?
>
> Tim


To elaborate: if there are >1 instances of Excel open then getobject
returns a reference to a random instance. If your expected
spreadsheet isn't open in that instance then your code may fail.

Tim


>
> "Jack" <replyto@it> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > Anyone else to pitch on that subject?
> > Anybody had that problem before?
> > I cannot believe it.
> > In the last 5 years, I encountered at least about 50 computers where Excel
> > automation did not work!
> > Jack

>
> > "Jack" <replyto@it> wrote in message
> >news:%(E-Mail Removed)...
> >> Hello,
> >> * * * * * * I have developed the stand alone application which interacts
> >> with Excel spreadsheet.
> >> It works fine on most Windows and computers, but from time to time I have
> >> message from the user that my app cannot 'find' any opened spreadsheets,
> >> but they are opened.
> >> I wonder, what can cause that? What should I advise user to do?
> >> Reinstalling Excel does not help.
> >> I am using vbasic and Excel automation.
> >> Your comments appreciated,
> >> Jack- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are problems w/backup - common, or just me? Boswell Windows Vista General Discussion 2 14th Feb 2008 11:59 PM
Common Practice to Connect SQL =?Utf-8?B?d3J5dGF0?= Microsoft ADO .NET 10 20th Jun 2007 04:48 PM
TIP: How to Fix Windows Common Problems windude Windows XP General 3 16th Sep 2004 10:06 PM
Some solutions to common XP/IE problems. Thadius Windows XP General 1 30th Nov 2003 05:30 AM
Solutions to some common XP/IE problems. Thadius Windows XP Internet Explorer 0 30th Nov 2003 04:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:46 PM.