Hi there,
While this isn't the VBA forum, I can give you a VBA solution. If you use it a ton, however, you may find that the worksheet will slow down drastically.
-To use this, press Alt+F11 to open the Visual Basic Editor (VBE)
-Press CTRL+R to open the Project Explorer (may be open) which looks like a windows tree
-Find you project and expand it till you can see all the child items in it
-Right click your project and choose Insert--> Module
-Paste the following code in the pane at right:
Code:
Public Function SheetOffset(rng As Range, lOffset As Long) As Variant
Application.Volatile
SheetOffset = Worksheets(rng.Parent.Index + lOffset).Range(rng.Address).Value
End Function
-Close the VBE and save your workbook
You'd use the formula by entering it the cell as follows:
=SheetOffset(B2,1)
Where B2 is the range you want from the other sheet, and 1 is the number of sheets you want to move to the right. If you want a sheet to the left of what you're on, use -1 (or -2, etc...)
Again, custom formulas can be very slow when you get a lot in there. It may be better to create your first Sheet1/Template1 formula set, copy them to Sheet2 and do a find/replace to replace all Sheet1 with Sheet2. Of course this only works if the sheets are identical.
There may also be a native formula route with this, but I'll leave that for someone else to explore.
Ken Puls, CMA