Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I'm very new to macros and would appreciate any help. I am using Excel in MS Office 2003. I'm trying to write a macro that summarizes info onto a Summary tab from Multiple worksheets starting at the 3rd worksheet. All the worksheets are set up similarly and I want to pull the same 2 cells B4 and A3 from each worksheet to the Summary page. Also all my worksheets have names. I tried changing the "Sheet" to "Worksheet" and that doesn't help. What am I doing wrong? Dim i As Integer, Sheet As Worksheet Range("A1").Select For i = 3 To Worksheets.Count Step 1 ActiveCell.FormulaR1C1 = "=Sheet(i)!R[3]C[1]" ActiveCell.Offset(0, 1).Range("A1").Select ActiveCell.FormulaR1C1 = "=Sheet(i)!R[2]C[-1]" ActiveCell.Offset(1, -1).Range("A1").Select Next i End Sub Thanks Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to create validation list of worksheet names | Excel Discussion (Misc queries) | |||
Need Macro to Collect Multiple Worksheet Names | Excel Worksheet Functions | |||
Macro to capture worksheet names | Excel Worksheet Functions | |||
I need a macro that will insert names in an excel worksheet, the . | Excel Programming | |||
return all worksheet tab names and chart sheet tab names in report - an example | Excel Programming |