Compatability 97 2000 2002

jgoulart

Board Regular
Joined
Feb 16, 2002
Messages
62
I have finally found(or at least that's what I think I have found) through much frustration that in 2002 to change the font color sheet and workbook have to be unprotected. I ran my routine as follows:

Private Sub drop_Click()
Application.ScreenUpdating = False

'ThisWorkbook.ActiveSheet.Range("A1").Select
unprot 'unprotects sheet and workbook
Sheets("sheet2").Range("adjshp") = ""
Sheets("invoice").Cells(38, 11).Font.Color = RGB(0, 0, 0) '
Sheets("invoice").Cells(38, 10).Font.Color = RGB(0, 0, 0)
protect1 'reprotects sheet and workbook
Application.ScreenUpdating = True

End Sub


in both 97 and 2000 with no problem with out using my macros unprot(unprotects workbook and sheet) and protect1 (protects workbook and sheet). In 2002 it crashed on the command to change the font color. Is this the way it is supposed to act?

John
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
VBA XP does have changes

suggest writ XP version of the code, sounds silly surposed tobe all OK this is not the case as time is proving.

XP has advances but also trips on old code lines???

little ryme to the reason
 
Upvote 0

Forum statistics

Threads
1,214,393
Messages
6,119,261
Members
448,880
Latest member
aveternik

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top