Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Can someone help Cleanup my recorded macro

I was wondering if some one could look at this and clean it up so its more
better. I dont know excel very good I recorded the macro and if the excel
file changes in pretty much any way then the macro error.

Application.Run "'Points Tracker.xls'!UnprotectAll"
Columns("H:AK").Select
Selection.EntireColumn.Hidden = True
Range("A4:AM104").Select
Range("AM4").Activate
Selection.Sort Key1:=Range("AM4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A4").Select
With ActiveWorkbook.PublishObjects("Nitro Points Tracker_23684")
.HtmlType = xlHtmlStatic
.Publish (False)
.AutoRepublish = False
End With
Range("A4:AM104").Select
Selection.Sort Key1:=Range("A4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A4").Select
Selection.EntireColumn.Hidden = False
Cells.Select
Selection.EntireColumn.Hidden = False
Range("A4").Select

Sheets("eigth_sportsman").Select
Columns("H:AK").Select
Selection.EntireColumn.Hidden = True
Range("A4:AM104").Select
Range("AM4").Activate
Selection.Sort Key1:=Range("AM4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A4").Select
With ActiveWorkbook.PublishObjects("Points Tracker_29286")
.HtmlType = xlHtmlStatic
.Publish (False)
.AutoRepublish = False
End With
Range("A4:AM104").Select
Selection.Sort Key1:=Range("A4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Cells.Select
Selection.EntireColumn.Hidden = False
Range("A4").Select

Sheets("arena_truck").Select
Columns("H:AK").Select
Selection.EntireColumn.Hidden = True
Range("A4:AM104").Select
Range("AM4").Activate
Selection.Sort Key1:=Range("AM4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A4").Select
With ActiveWorkbook.PublishObjects("Points Tracker_30097")
.HtmlType = xlHtmlStatic
.Publish (False)
.AutoRepublish = False
End With
Range("A4:AM104").Select
Selection.Sort Key1:=Range("A4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Cells.Select
Selection.EntireColumn.Hidden = False
Range("A4").Select

Sheets("monster_truck").Select
Columns("H:AK").Select
Selection.EntireColumn.Hidden = True
Range("A4:AM104").Select
Range("AM4").Activate
Selection.Sort Key1:=Range("AM4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A4").Select
With ActiveWorkbook.PublishObjects("Points Tracker_30829")
.HtmlType = xlHtmlStatic
.Publish (False)
.AutoRepublish = False
End With
Range("A4:AM104").Select
Selection.Sort Key1:=Range("A4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Cells.Select
Selection.EntireColumn.Hidden = False
Range("A4").Select

Sheets("stadium_truck").Select
Columns("H:AK").Select
Selection.EntireColumn.Hidden = True
Range("A4:AM104").Select
Range("AM4").Activate
Selection.Sort Key1:=Range("AM4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A4").Select
With ActiveWorkbook.PublishObjects("Points Tracker_31534")
.HtmlType = xlHtmlStatic
.Publish (False)
.AutoRepublish = False
End With
Range("A4:AM104").Select
Selection.Sort Key1:=Range("A4"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Cells.Select
Selection.EntireColumn.Hidden = False
Range("A4").Select
Sheets("eigth_scale").Select
Range("A4").Select
Application.Run "'Points Tracker.xls'!ProtectAll"
ActiveWorkbook.Save

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
Repeat a recorded macro Puzzled Excel Discussion (Misc queries) 3 July 30th 07 05:54 PM
How to FIX Recorded Macro JMay Excel Discussion (Misc queries) 7 May 23rd 07 04:13 AM
Recorded Macro want to know New Users to Excel 5 February 14th 07 12:46 PM
I recorded a macro, how can i share it with others? TA Excel Worksheet Functions 1 September 8th 06 08:09 PM
Recorded macro: What happens if I change filename? [email protected] Excel Discussion (Misc queries) 2 January 26th 05 11:54 PM


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