You are on page 1of 3

Sub SmashwordsMacro()

'
' SmashwordsMacro Macro

Sheets(1).Select
Cells.Select
Selection.Copy
Sheets.Add After:=ActiveSheet
Sheets("Sheet1").Select
Sheets("Sheet1").Name = "Before Conversion"
ActiveSheet.Paste
Sheets(1).Select

Columns("A:A").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("A1").Select
ActiveCell.FormulaR1C1 = "Retailer"
Range("B1").Select
ActiveCell.FormulaR1C1 = "RoyaltyMonth"
Range("C1").Select
ActiveCell.FormulaR1C1 = "RoyaltyYear"
Columns("B:C").Select
Columns("B:C").EntireColumn.AutoFit
Range("A2").Select
Columns("A:A").ColumnWidth = 14.32
Range("G1").Select
ActiveCell.FormulaR1C1 = "SmashwordsID"
Range("E1").Select
ActiveCell.FormulaR1C1 = "Vendor"
Range("I1").Select
ActiveCell.FormulaR1C1 = "Title"
Range("J1").Select
ActiveCell.FormulaR1C1 = "Author"
Range("F1").Select
ActiveCell.FormulaR1C1 = "Location"
Range("D1").Select
ActiveCell.FormulaR1C1 = "TransactionType"
Range("D2").Select
Columns("D:D").EntireColumn.AutoFit
Range("H1").Select
ActiveCell.FormulaR1C1 = "ISBN"
Range("K1").Select
ActiveCell.FormulaR1C1 = "Publisher"
Range("L1").Select
ActiveCell.FormulaR1C1 = "price"
Range("L1").Select
ActiveCell.FormulaR1C1 = "Price"
Range("M1").Select
ActiveCell.FormulaR1C1 = "UnitsSold"
Range("N1").Select
ActiveCell.FormulaR1C1 = "Amount"
Range("O1").Select
ActiveCell.FormulaR1C1 = "CouponCode"
Columns("O:AF").Select
Columns("O:AF").EntireColumn.AutoFit
Range("P1").Select
ActiveCell.FormulaR1C1 = "CouponDesc"
Range("Q1").Select
ActiveCell.FormulaR1C1 = "PayoutType"
Range("R1").Select
ActiveCell.FormulaR1C1 = "Viewed_Pct"
Range("S1").Select
ActiveCell.FormulaR1C1 = "Interact_Start"
Range("T1").Select
ActiveCell.FormulaR1C1 = "Interact_Last"
Range("U1").Select
ActiveCell.FormulaR1C1 = "RetailerCut"
Range("V1").Select
ActiveCell.FormulaR1C1 = "SmashwordsCut"
Range("W1").Select
ActiveCell.FormulaR1C1 = "AffiliateCut"
Range("X1").Select
ActiveCell.FormulaR1C1 = "TransFee"
Range("Y1").Select
ActiveCell.FormulaR1C1 = "VAT"
Range("Y2").Select
Columns("Y:Y").ColumnWidth = 4.86
Range("Z1").Select
ActiveCell.FormulaR1C1 = "NetRoyalty"
Range("Z1").Select
ActiveCell.FormulaR1C1 = "NetSales"
Range("AA1").Select
ActiveCell.FormulaR1C1 = "Currency"
Range("AB1").Select
ActiveCell.FormulaR1C1 = "Royalty"
Range("AE1").Select
ActiveCell.FormulaR1C1 = "dateset"
Range("F1").Select
ActiveCell.FormulaR1C1 = "Marketplace"
Range("F2").Select
Range("A2").Select

End Sub

You might also like