Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Workbook_Open in ThisWorkbook.module

Bob,
Did you get an answer somewhere else? If not, actually I tried your code
and it worked on my system as is. But you could write it a little
differently:

Private Sub Workbook_Open()
Application.ScreenUpdating = False
Sheets("Details").Columns("I:I").NumberFormat = _
"m/d/yy;@"
Sheets("Details").Columns("L:L").NumberFormat = _
"$#,##0.00_);[Red]($#,##0.00)"
Sheets("Details").Columns("M:M").NumberFormat = _
"0"
Sheets("Details").Columns("N:N").NumberFormat = _
"$#,##0.00_);[Red]($#,##0.00)"
Sheets("Monthly Reconcile Report").Select
Range("A1").Select
Application.ScreenUpdating = True
End Sub

Does the same thing without jumping around on sheets so much.

"Bob Barnes" wrote:

Is running, but NOT working..Also, placing AUTO_OPEN there does NOT
run..tested both Workbook_Open and AUTO_OPEN using "Stop"..

Private Sub Workbook_Open()
Application.ScreenUpdating = False
Sheets("Details").Select
Columns("I:I").Select
Selection.NumberFormat = "m/d/yy;@"
Columns("L:L").Select
Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
Columns("M:M").Select
Selection.NumberFormat = "0"
Columns("N:N").Select
Selection.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
Sheets("Monthly Reconcile Report").Select: Range("A1").Select
Application.ScreenUpdating = True
End Sub

Ideas? TIA - Bob

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
compile error in hidden module: thisworkbook Tran Thu Do Excel Discussion (Misc queries) 3 June 4th 12 10:33 AM
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
Compile error in hidden module: ThisWorkbook Lloyd Excel Discussion (Misc queries) 1 May 27th 05 11:39 PM
Compile error in hidden module: ThisWorkbook Peo Sjoblom Excel Discussion (Misc queries) 0 May 27th 05 09:50 PM


All times are GMT +1. The time now is 10:53 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"