I tried to record a macro, but I'm sure I need a bit more help. Not a VB programmer/expert at all..
Anyway, I need the data from the following cells from ALL worksheets in a workbook (except one: Report worksheet). I also would like the data to be entered in a new row for each sheet (not row 41 like my Macro does). Finally, I want column A to create a hyperlink where the SubAddress maps back to the appropriate worksheet, the A1 cell reference below is fine.
Please help.. Thanks.
Sub GrabData()
'
' GrabData Macro
'
'
ActiveWindow.SmallScroll Down:=9
Range("A41").Select
ActiveCell.FormulaR1C1 = "='239855-372'!R[-39]C[4]"
Range("B41").Select
ActiveCell.FormulaR1C1 = "='239855-372'!R[-39]C[6]"
Range("C41").Select
ActiveCell.FormulaR1C1 = "='239855-372'!R[-39]C[-1]"
Range("D41").Select
ActiveCell.FormulaR1C1 = "='239855-372'!R[-33]C[-2]"
Range("A41").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"GL%20Assessment%20Summary.xlsx", SubAddress:="'239855-372'!A1"
End Sub
Anyway, I need the data from the following cells from ALL worksheets in a workbook (except one: Report worksheet). I also would like the data to be entered in a new row for each sheet (not row 41 like my Macro does). Finally, I want column A to create a hyperlink where the SubAddress maps back to the appropriate worksheet, the A1 cell reference below is fine.
Please help.. Thanks.
Sub GrabData()
'
' GrabData Macro
'
'
ActiveWindow.SmallScroll Down:=9
Range("A41").Select
ActiveCell.FormulaR1C1 = "='239855-372'!R[-39]C[4]"
Range("B41").Select
ActiveCell.FormulaR1C1 = "='239855-372'!R[-39]C[6]"
Range("C41").Select
ActiveCell.FormulaR1C1 = "='239855-372'!R[-39]C[-1]"
Range("D41").Select
ActiveCell.FormulaR1C1 = "='239855-372'!R[-33]C[-2]"
Range("A41").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"GL%20Assessment%20Summary.xlsx", SubAddress:="'239855-372'!A1"
End Sub