Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default 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




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default 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






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default 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






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
Excel 2007 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 10:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"