Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Macro works on some but not for all

We have VISTA on all the machines but one (XP) but all have office 2007.
Three of us can open this work book and run this macro. four of us can not.
We have a button named refresh that is suppose to run the following macro:

ActiveWorkbook.RefreshAll
Range("G6").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh
Range("G5").Select
Selection.Sort Order1:=xlDescending, Type:=xlSortLabels, OrderCustom:=1, _
Orientation:=xlTopToBottom
ActiveWindow.SmallScroll ToRight:=10
Range("N6").Select
ActiveSheet.PivotTables("PivotTable2").PivotCache. Refresh
Range("N5").Select
Selection.Sort Order1:=xlDescending, Type:=xlSortLabels, OrderCustom:=1, _
Orientation:=xlTopToBottom
ActiveWindow.SmallScroll ToRight:=7
Sheets("EPA Grant").Select
Range("H6").Select
ActiveSheet.PivotTables("PivotTable4").PivotCache. Refresh
Range("H5").Select
Selection.Sort Order1:=xlDescending, Type:=xlSortLabels, OrderCustom:=1, _
Orientation:=xlTopToBottom
Range("A5").Select
Sheets("MFE ").Select
Range("F5").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh
Range("F4").Select
Selection.Sort Order1:=xlDescending, Type:=xlSortLabels, OrderCustom:=1, _
Orientation:=xlTopToBottom
ActiveWindow.SmallScroll ToRight:=7
Sheets("FE QUERY").Select
Range("F5").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh
Range("F4").Select
Selection.Sort Order1:=xlDescending, Type:=xlSortLabels, OrderCustom:=1, _
Orientation:=xlTopToBottom
Sheets("Plant data").Select
ActiveWindow.SmallScroll ToRight:=-17
End Sub


When I clcik on the debug button it always highlights the first line. This
use to work for all of us now it chokes. Any ideas? Thank you in advance!
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
Macro works but is there a better way Brad Excel Programming 3 January 25th 08 02:40 PM
Macro works, then doesn't Oddball Excel Programming 3 July 26th 07 09:06 PM
Macro Only works Once [email protected] Excel Programming 8 December 28th 06 11:42 PM
Macro works once, not twice Madvark Excel Programming 6 June 18th 04 11:00 PM
macro works in .xlt but not .xls BrianG[_3_] Excel Programming 6 September 18th 03 10:13 PM


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