One of our key data sources is a cube. I connect to the cubeto pull data into a pivot table and then clean up the table so that it is in table format. I want to copy the table and paste it to another tab as values then run through the clean up of the headers and first two columns. Since the tables vary in size, I want to use variables for the range selection. Selct down to last row and last column. I cannot figure it out. I used the recorder to get most of the other code and just need help identifying the ranges to be modified. Here is what I recorded and this is the piece I want to be variable - Range("A10:C271").Select.
Range("C10").Select
Range(Selection, Selection.End(xlDown)).Select
Range("A10:C271").Select
Range("C10").Activate
Selection.SpecialCells(xlCellTypeBlanks).Select
Application.CutCopyMode = False
Selection.FormulaR1C1 = "=R[-1]C"
Thanks for your help!
Range("C10").Select
Range(Selection, Selection.End(xlDown)).Select
Range("A10:C271").Select
Range("C10").Activate
Selection.SpecialCells(xlCellTypeBlanks).Select
Application.CutCopyMode = False
Selection.FormulaR1C1 = "=R[-1]C"
Thanks for your help!