Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Excel Security Update 2003 (KB955466)

My PC installed this security update automatically this past week and
now when I open a spreadsheet that I use daily with the following code
in it, I get "Automation Error-Catastrophic failure" when I
unistalled this update, the code runs fine again.

The code is:

Function NEXTSATURDAY(d As Date) As Date
Dim TestDay As Date
TestDay = d + 1
Do Until Weekday(TestDay) = 7
TestDay = TestDay + 1
Loop
NEXTSATURDAY = TestDay

Any help you can give would be appreciated.

Also, I cannot remember the character to place at the front of a line
of code to disable it.

Thanks, Steve
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Excel Security Update 2003 (KB955466)

Use a single quote in front of a line to disable it.

Sadly, I can not get your code to fail.
--
Gary''s Student - gsnu2007k


"Steve" wrote:

My PC installed this security update automatically this past week and
now when I open a spreadsheet that I use daily with the following code
in it, I get "Automation Error-Catastrophic failure" when I
unistalled this update, the code runs fine again.

The code is:

Function NEXTSATURDAY(d As Date) As Date
Dim TestDay As Date
TestDay = d + 1
Do Until Weekday(TestDay) = 7
TestDay = TestDay + 1
Loop
NEXTSATURDAY = TestDay

Any help you can give would be appreciated.

Also, I cannot remember the character to place at the front of a line
of code to disable it.

Thanks, Steve

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Excel Security Update 2003 (KB955466)

The apostrophe ( ' ) makes the code into a comment.

"Steve" wrote:

My PC installed this security update automatically this past week and
now when I open a spreadsheet that I use daily with the following code
in it, I get "Automation Error-Catastrophic failure" when I
unistalled this update, the code runs fine again.

The code is:

Function NEXTSATURDAY(d As Date) As Date
Dim TestDay As Date
TestDay = d + 1
Do Until Weekday(TestDay) = 7
TestDay = TestDay + 1
Loop
NEXTSATURDAY = TestDay

Any help you can give would be appreciated.

Also, I cannot remember the character to place at the front of a line
of code to disable it.

Thanks, Steve

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Excel Security Update 2003 (KB955466)

This does not answer you basic question about the Security Update
But how about ?

Function NEXTSATURDAY(d As Date) As Date
NEXTSATURDAY = d + (7 - WorksheetFunction.Weekday(d))
End Function

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Steve" wrote in message
...
My PC installed this security update automatically this past week and
now when I open a spreadsheet that I use daily with the following code
in it, I get "Automation Error-Catastrophic failure" when I
unistalled this update, the code runs fine again.

The code is:


Any help you can give would be appreciated.

Also, I cannot remember the character to place at the front of a line
of code to disable it.

Thanks, Steve



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Excel Security Update 2003 (KB955466)

Of course, if D is Saturday, you may wish to use
NEXTSATURDAY = d+1 + (7 - WorksheetFunction.Weekday(d+1))


--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Bernard Liengme" wrote in message
...
This does not answer you basic question about the Security Update
But how about ?

Function NEXTSATURDAY(d As Date) As Date
NEXTSATURDAY = d + (7 - WorksheetFunction.Weekday(d))
End Function

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Steve" wrote in message
...
My PC installed this security update automatically this past week and
now when I open a spreadsheet that I use daily with the following code
in it, I get "Automation Error-Catastrophic failure" when I
unistalled this update, the code runs fine again.

The code is:


Any help you can give would be appreciated.

Also, I cannot remember the character to place at the front of a line
of code to disable it.

Thanks, Steve





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
Security Update for Excel 2003 (KB955466) Conflict with Excel 2000 KC Excel Discussion (Misc queries) 1 November 29th 08 06:54 PM
Update KB955466 Jim in Cumbria Excel Discussion (Misc queries) 4 November 7th 08 04:48 PM
Can't install Security Update for Excel 2003 musiclover[_2_] Excel Discussion (Misc queries) 0 July 16th 07 08:28 PM
Excel 2003 security update, please help me! Eddy[_2_] Setting up and Configuration of Excel 1 June 17th 07 09:57 AM
Security update KB905756 problem with Excel 2003 Peter20006 Excel Discussion (Misc queries) 0 March 23rd 06 09:19 PM


All times are GMT +1. The time now is 06:49 PM.

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"