getting error

J

Jan Eikeland

environment excel97.
I run a macro, look at its code and paste it into my VB code.
Im getting an error.
What could be wrong?
Will I get an error if conditions allready are true?
thank You
regards jan

Private Sub Worksheet_Activate()
With ActiveWindow
.DisplayFormulas = False
.DisplayGridlines = False
.DisplayHeadings = False
.DisplayOutline = False
.DisplayZeros = False
.DisplayHorizontalScrollBar = False
.DisplayVerticalScrollBar = False
.DisplayWorkbookTabs = True
End With
ActiveSheet.DisplayPageBreaks = False
End Sub
 
C

Chip Pearson

Jan,

What error are you getting, and on what line does the error
occur?


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
J

Jan Eikeland

hi tks fer answer.
runtime error 1004 : Cant give display-formulas proerty to window class.

tks
jan
 
J

Jan Eikeland

hi, tks fer answer.
runtime errror 1004 : cant give displayformulas property to window class.

regards jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top