ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   getting error (https://www.excelbanter.com/excel-programming/285330-getting-error.html)

Jan Eikeland

getting error
 
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



Chip Pearson

getting error
 
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


"Jan Eikeland" wrote in message
...
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





Chris Leonard

getting error
 
Whats the error ?

"Jan Eikeland" wrote in message
...
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





Jan Eikeland

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

tks
jan
"Chip Pearson" skrev i melding
...
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


"Jan Eikeland" wrote in message
...
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







Jan Eikeland

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

regards jan

"Chris Leonard" skrev i melding
...
Whats the error ?

"Jan Eikeland" wrote in message
...
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








All times are GMT +1. The time now is 07:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com