Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VB6 Excel 97 code no longer works if Win2K SP3/4 applied.

My code worked great with SP2 and now does not work correctly. Get error
"method 'Visible' of object 'Application' failed" when trying to set the
workbook visible to false. Again, worked fine in SP2. I saw a fix on this,
but cant remember exactly what is was or where is was. Had something to do
with remove a specific hotfix, or replacing a dll with prev vers. Please
dont message me to upgrade the product (275 per lic @ 130 lic, my company
cannot afford!).
--
Tim R
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default VB6 Excel 97 code no longer works if Win2K SP3/4 applied.

You may want to post your code and indicate the offending line of code.

Tim R wrote:

My code worked great with SP2 and now does not work correctly. Get error
"method 'Visible' of object 'Application' failed" when trying to set the
workbook visible to false. Again, worked fine in SP2. I saw a fix on this,
but cant remember exactly what is was or where is was. Had something to do
with remove a specific hotfix, or replacing a dll with prev vers. Please
dont message me to upgrade the product (275 per lic @ 130 lic, my company
cannot afford!).
--
Tim R


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VB6 Excel 97 code no longer works if Win2K SP3/4 applied.

Here is where it fails.

set objExcel = new Excel.Application
objExcel.visible = false <--- Here is where the error occurs.

This worked fine before SP3 or SP4 for Win2K was applied. No problems at
all (it is a very simple piece of code). I have tried using late binding as
well (this part worked in late binding). Some things work in late binding
that dont work in early and vice-versa. EVERYTHING works in early binding
w/o SP3/4. The reason SP3/4 need applied is for MS security flaws that are
updated in these service packs (its a total catch 22).

Tim R

"Dave Peterson" wrote:

You may want to post your code and indicate the offending line of code.

Tim R wrote:

My code worked great with SP2 and now does not work correctly. Get error
"method 'Visible' of object 'Application' failed" when trying to set the
workbook visible to false. Again, worked fine in SP2. I saw a fix on this,
but cant remember exactly what is was or where is was. Had something to do
with remove a specific hotfix, or replacing a dll with prev vers. Please
dont message me to upgrade the product (275 per lic @ 130 lic, my company
cannot afford!).
--
Tim R


--

Dave Peterson


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default VB6 Excel 97 code no longer works if Win2K SP3/4 applied.

Boy, that doesn't look like anything that should cause trouble.

But I don't use xl97/win2k. Maybe someone who has your configuration can try to
test it to help find a solution.



Tim R wrote:

Here is where it fails.

set objExcel = new Excel.Application
objExcel.visible = false <--- Here is where the error occurs.

This worked fine before SP3 or SP4 for Win2K was applied. No problems at
all (it is a very simple piece of code). I have tried using late binding as
well (this part worked in late binding). Some things work in late binding
that dont work in early and vice-versa. EVERYTHING works in early binding
w/o SP3/4. The reason SP3/4 need applied is for MS security flaws that are
updated in these service packs (its a total catch 22).

Tim R

"Dave Peterson" wrote:

You may want to post your code and indicate the offending line of code.

Tim R wrote:

My code worked great with SP2 and now does not work correctly. Get error
"method 'Visible' of object 'Application' failed" when trying to set the
workbook visible to false. Again, worked fine in SP2. I saw a fix on this,
but cant remember exactly what is was or where is was. Had something to do
with remove a specific hotfix, or replacing a dll with prev vers. Please
dont message me to upgrade the product (275 per lic @ 130 lic, my company
cannot afford!).
--
Tim R


--

Dave Peterson



--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default VB6 Excel 97 code no longer works if Win2K SP3/4 applied.

"Dave Peterson" wrote in message
...
Boy, that doesn't look like anything that should cause trouble.

But I don't use xl97/win2k. Maybe someone who has your configuration can
try to
test it to help find a solution.


I have a client whose application still needs to be backward compatible
with Excel 97, which I'm running on a Win2K box with no other versions of
Office installed. I've never encountered any troubles automating Excel from
Excel (which this app does in several places). I'd guess this is a
machine-specific problem and you're probably going to have to reformat and
reload

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default VB6 Excel 97 code no longer works if Win2K SP3/4 applied.

Tim -

This probably isn't much use globally, but when you create a new Excel.App, isn't it
hidden by default?

Also, I don't have direct knowledge of this, because I always use CreateObject. But
I think I've read that CreateObject(Excel.Application) is better than Set Obj = New
ObjClass.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Tim R wrote:

Here is where it fails.

set objExcel = new Excel.Application
objExcel.visible = false <--- Here is where the error occurs.

This worked fine before SP3 or SP4 for Win2K was applied. No problems at
all (it is a very simple piece of code). I have tried using late binding as
well (this part worked in late binding). Some things work in late binding
that dont work in early and vice-versa. EVERYTHING works in early binding
w/o SP3/4. The reason SP3/4 need applied is for MS security flaws that are
updated in these service packs (its a total catch 22).

Tim R

"Dave Peterson" wrote:


You may want to post your code and indicate the offending line of code.

Tim R wrote:

My code worked great with SP2 and now does not work correctly. Get error
"method 'Visible' of object 'Application' failed" when trying to set the
workbook visible to false. Again, worked fine in SP2. I saw a fix on this,
but cant remember exactly what is was or where is was. Had something to do
with remove a specific hotfix, or replacing a dll with prev vers. Please
dont message me to upgrade the product (275 per lic @ 130 lic, my company
cannot afford!).
--
Tim R


--

Dave Peterson



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
in excel, pressing shift+ctrl+arrow no longer works? any idea why excel user Excel Worksheet Functions 1 August 12th 09 03:04 PM
Export chart to GIF no longer works after installing Excel 2007b2 excelFan Charts and Charting in Excel 15 May 4th 07 05:36 PM
Spreadsheet SUM(C:C) or indeed any SUM no longer works Excel 2003 knowq.biz/video.htm Excel Worksheet Functions 14 November 13th 06 03:19 PM
Macro no longer works in XP C.B.[_2_] Excel Programming 1 December 14th 03 10:19 PM
Macro no longer works now that in Excel XP C.B.[_2_] Excel Programming 0 December 14th 03 09:49 PM


All times are GMT +1. The time now is 01:16 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"