LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
The Toasterman
 
Posts: n/a
Default MACRO Run Time Error 1004

Anbody have any ideas why this macro is generating a Run Time Error 1004 on
certain machines?

Sub Sort()
'
' Sort Macro
' Macro recorded 30/06/2006 by mintt
'

'
Range("A2:B52").Select
Selection.Sort Key1:=Range("B3"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("A2").Select
Sheets("Cash Imprest").Select
ActiveWindow.LargeScroll Down:=1
Range("G48:J98").Select
Selection.Sort Key1:=Range("I49"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
ActiveWindow.LargeScroll Down:=-1
Range("A1:M2").Select
Sheets("New Codes").Select
Range("A1").Select
End Sub

 
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
Want to measure macro elapsed time. Nevyenn Excel Discussion (Misc queries) 2 May 17th 06 05:13 PM
Run a macro automatically at a certain time Curt D. Excel Worksheet Functions 4 April 28th 06 10:19 PM
Run macro based on time Bruce Excel Worksheet Functions 7 December 23rd 05 01:27 PM
Entering Time Macro [email protected] Excel Worksheet Functions 2 September 10th 05 09:09 AM
Can I get a macro to run at a certain time of day? Nick123 Excel Discussion (Misc queries) 2 July 27th 05 11:31 AM


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