Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Recorded Macro

Here is my recorded Macro I need to turn it into VBA to speed it up. HELP.

Sub SumCert()
'
' SumCert Macro
' Macro recorded 10/12/2006 by J922703
'

'
Range("A11:A14").Select
Selection.TextToColumns Destination:=Range("A11"), DataType:=xlDelimited,
_
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True,
_
Semicolon:=False, Comma:=False, Space:=False, Other:=True, OtherChar
_
:="¦", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array
(4, 1), Array(5, _
1), Array(6, 1), Array(7, 1), Array(8, 1), Array(9, 1)),
TrailingMinusNumbers:=True
ActiveWindow.SmallScroll Down:=6
Range("A15:A36").Select
Selection.TextToColumns Destination:=Range("A15"), DataType:=xlFixedWidth,
_
OtherChar:="¦", FieldInfo:=Array(Array(0, 1), Array(19, 1), Array(35,
1), Array( _
49, 1), Array(64, 1), Array(79, 1), Array(94, 1), Array(110, 1)),
TrailingMinusNumbers _
:=True
ActiveWindow.SmallScroll Down:=27
Range("A47:A50").Select
Selection.TextToColumns Destination:=Range("A47"), DataType:=xlDelimited,
_
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True,
_
Semicolon:=False, Comma:=False, Space:=False, Other:=True, OtherChar
_
:="¦", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array
(4, 1), Array(5, _
1), Array(6, 1), Array(7, 1), Array(8, 1), Array(9, 1)),
TrailingMinusNumbers:=True
ActiveWindow.SmallScroll Down:=15
Range("A51:A72").Select
Selection.TextToColumns Destination:=Range("A51"), DataType:=xlFixedWidth,
_
OtherChar:="¦", FieldInfo:=Array(Array(0, 1), Array(19, 1), Array(35,
1), Array( _
49, 1), Array(64, 1), Array(79, 1), Array(94, 1), Array(110, 1)),
TrailingMinusNumbers _
:=True
ActiveWindow.SmallScroll Down:=-39
Columns("A:A").ColumnWidth = 10
Columns("A:A").ColumnWidth = 10.57
Columns("B:B").ColumnWidth = 9.86
Columns("B:B").ColumnWidth = 10.71
Columns("C:C").ColumnWidth = 9.29
Columns("C:C").ColumnWidth = 10.71
Columns("C:C").ColumnWidth = 11
Columns("D:D").ColumnWidth = 11.71
Columns("D:D").ColumnWidth = 10.71
Columns("E:E").ColumnWidth = 11
Columns("G:G").ColumnWidth = 9.71
End Sub

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Recorded Macro

remove the scroll down lines entirely

Delete selections thusly
Range("A11:A14").TextToColumns Destination:=Range("A11"),
DataType:=xlDelimited

combine col width or change to autofit
columns("a:g").autofit

--
Don Guillett
SalesAid Software

"jln via OfficeKB.com" <u25956@uwe wrote in message
news:67a801a36288b@uwe...
Here is my recorded Macro I need to turn it into VBA to speed it up. HELP.

Sub SumCert()
'
' SumCert Macro
' Macro recorded 10/12/2006 by J922703
'

'
Range("A11:A14").Select
Selection.TextToColumns Destination:=Range("A11"),
DataType:=xlDelimited,
_
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=True,
_
Semicolon:=False, Comma:=False, Space:=False, Other:=True,
OtherChar
_
:="¦", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1),
Array
(4, 1), Array(5, _
1), Array(6, 1), Array(7, 1), Array(8, 1), Array(9, 1)),
TrailingMinusNumbers:=True
ActiveWindow.SmallScroll Down:=6
Range("A15:A36").Select
Selection.TextToColumns Destination:=Range("A15"),
DataType:=xlFixedWidth,
_
OtherChar:="¦", FieldInfo:=Array(Array(0, 1), Array(19, 1),
Array(35,
1), Array( _
49, 1), Array(64, 1), Array(79, 1), Array(94, 1), Array(110, 1)),
TrailingMinusNumbers _
:=True
ActiveWindow.SmallScroll Down:=27
Range("A47:A50").Select
Selection.TextToColumns Destination:=Range("A47"),
DataType:=xlDelimited,
_
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=True,
_
Semicolon:=False, Comma:=False, Space:=False, Other:=True,
OtherChar
_
:="¦", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1),
Array
(4, 1), Array(5, _
1), Array(6, 1), Array(7, 1), Array(8, 1), Array(9, 1)),
TrailingMinusNumbers:=True
ActiveWindow.SmallScroll Down:=15
Range("A51:A72").Select
Selection.TextToColumns Destination:=Range("A51"),
DataType:=xlFixedWidth,
_
OtherChar:="¦", FieldInfo:=Array(Array(0, 1), Array(19, 1),
Array(35,
1), Array( _
49, 1), Array(64, 1), Array(79, 1), Array(94, 1), Array(110, 1)),
TrailingMinusNumbers _
:=True
ActiveWindow.SmallScroll Down:=-39
Columns("A:A").ColumnWidth = 10
Columns("A:A").ColumnWidth = 10.57
Columns("B:B").ColumnWidth = 9.86
Columns("B:B").ColumnWidth = 10.71
Columns("C:C").ColumnWidth = 9.29
Columns("C:C").ColumnWidth = 10.71
Columns("C:C").ColumnWidth = 11
Columns("D:D").ColumnWidth = 11.71
Columns("D:D").ColumnWidth = 10.71
Columns("E:E").ColumnWidth = 11
Columns("G:G").ColumnWidth = 9.71
End Sub

--
Message posted via
http://www.officekb.com



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 recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Recorded Macro want to know New Users to Excel 5 February 14th 07 12:46 PM
Creating a macro which presses a button containing a recorded macro petros89[_3_] Excel Programming 3 October 5th 05 02:49 PM
Recorded macro won't run rjamison Excel Programming 0 June 14th 05 12:14 AM
Recorded macro won't run RobinTaylor Excel Programming 8 April 20th 05 06:38 PM


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