Mortadella
Member
Sub Macro1()
'
' Macro1 Macro
' This is a great function on a spreadsheet but in a macro
' it wants to go all the way down to cell 65536 which sort of
' negates the whole point of a macro’s speed
Range("A4").Select
Selection.End(xlDown).Select
Range("B5:B338").Select
Range("B338").Activate
Selection.Copy
Range("G1").Select
ActiveSheet.Paste
Selection.SpecialCells(xlCellTypeBlanks).Select
Application.CutCopyMode = False
Selection.FormulaR1C1 = "=R[-1]C"
ActiveWindow.SmallScroll Down:=309
Range("G1:G334").Select
Range("G334").Activate
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
'
' Macro1 Macro
' This is a great function on a spreadsheet but in a macro
' it wants to go all the way down to cell 65536 which sort of
' negates the whole point of a macro’s speed
Range("A4").Select
Selection.End(xlDown).Select
Range("B5:B338").Select
Range("B338").Activate
Selection.Copy
Range("G1").Select
ActiveSheet.Paste
Selection.SpecialCells(xlCellTypeBlanks).Select
Application.CutCopyMode = False
Selection.FormulaR1C1 = "=R[-1]C"
ActiveWindow.SmallScroll Down:=309
Range("G1:G334").Select
Range("G334").Activate
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub