Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Charlie,
FANTASTIC! Sorry about the earlier hasty reply. I reentered the suggested code as a MACRO and it worked perfectly! Thanks so much for your help! Barry "Charlie" wrote: I don't know if it can be done with drag-n-drop editing but you can do it in VBA like this Sub Test() Dim Cell As Range For Each Cell In Range("A536:A540") Cell.Formula = "='" & Cell.Row & "'!$D$7" Next Cell End Sub (You didn't say how far down you wanted to go so I just went to row 540 as an example. I presume the workbooks 536.xls, 537.xls, etc., already exist, otherwise you'll get the file dialog for every row when you run the macro.) "BarryMart" wrote: I have a formula in A536 that reads: ='536'!$D$7 I want the formula in A537 to read: ='537'!$D$7 and so on... Any ideas welcomed and appreciated! Thanks, Barry |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Incrementally Updating worksheets in a workbook | Excel Discussion (Misc queries) | |||
Excel formula to incrementally increase a value by 1 every 365 day | Excel Worksheet Functions | |||
How do I copy and paste cells incrementally? | Excel Worksheet Functions | |||
Autofill Formulae | Excel Discussion (Misc queries) | |||
List incrementally? | Excel Worksheet Functions |