matttclark
Board Regular
- Joined
- Jan 13, 2011
- Messages
- 100
Hello,
As is frequently reccommended, I use the macro recorder as a starting place to try and figure out new thingsI'm trying to do.
Has or could anyone has come up with a small utitlity to clean what I'll call 'junk code' from macro recorder code. The most common example in my experience is code for scrolling, e.g. see the sample below. Its tedious to manually clean this out.
Thanks for any help!
As is frequently reccommended, I use the macro recorder as a starting place to try and figure out new thingsI'm trying to do.
Has or could anyone has come up with a small utitlity to clean what I'll call 'junk code' from macro recorder code. The most common example in my experience is code for scrolling, e.g. see the sample below. Its tedious to manually clean this out.
Code:
Range("F53").Select
ActiveSheet.Range("$F$52:$I$57").AutoFilter Field:=1, Criteria1:= _
"DTFACT-09-D-00010"
Range("G47").Select
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 4
ActiveWindow.ScrollColumn = 5
ActiveWindow.SmallScroll Down:=15
ActiveSheet.Range("$F$52:$I$57").AutoFilter Field:=1
ActiveWindow.ScrollColumn = 4
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 1
ActiveWindow.SmallScroll Down:=30
Range("F93").Select
Thanks for any help!