Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code to Copy a Formula to Multiple Sheets Q
What code could I use to copy a particular formula & format from one
cell to the same cell in all sheets between 2 specific ones? This would allow a short-cut for me inside of copying it manually 52 times My Formula which I want to use is in sheet 02-11-08 - Cell L36 The 2 sheets between which I want to copy the above formual is "Start" & "End" - thus every sheet between these should have the formula and not these two Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code to Copy a Formula to Multiple Sheets Q
This will use the Clipboard so it need only copy once and then loop\paste
through the sheets. Sub CopyStart2End() Dim i As Integer, sNDX As Integer, eNDX As Integer sNDX = Worksheets("Start").Index + 1 'after Start eNDX = Worksheets("End").Index - 1 'before End 'if there are always 52 sheets between Start & End 'then use the next 4 lines to check that there are ' If eNDX - sNDX < 51 Then ' MsgBox ("A sheet is missing") ' Exit Sub ' End If Worksheets("02-11-08").Range("L36").Copy For i = sNDX To eNDX With Worksheets(i) .Activate .Paste .Range("L36") End With Next Application.CutCopyMode = False End Sub Mike F "Seanie" wrote in message ... What code could I use to copy a particular formula & format from one cell to the same cell in all sheets between 2 specific ones? This would allow a short-cut for me inside of copying it manually 52 times My Formula which I want to use is in sheet 02-11-08 - Cell L36 The 2 sheets between which I want to copy the above formual is "Start" & "End" - thus every sheet between these should have the formula and not these two Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code to Copy a Formula to Multiple Sheets Q
Mike, thats fantastic
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help on VBA Code to populate multiple sheets | Excel Discussion (Misc queries) | |||
Code Procedure for multiple sheets | Excel Programming | |||
Copy date formula to multiple sheets | Excel Discussion (Misc queries) | |||
Copy from Multiple Sheets | Excel Programming | |||
copy and paste from different sheets into one sheet using a VB code | Excel Programming |