Hello,
I've got a large number of workbooks, each with the exact same sheet names and structure; I want to copy selected cells from selected sheets out of each one and paste into a master workbook, each of the 80 workbooks having one row in the master workbook with a column for each of the cells copied and pasted. The cells being copied have formulas in them and I want to paste the actual formula (not the result) into the master workbook.
I've found many solutions to situations almost like this, but not something that works for just right. Here is something I found that almost does the trick at: http://www.mrexcel.com/forum/excel-q...-workbook.html (the macro code posted by hiker95).
The relevant portion of the code is:
With .Range("A" & NR)
.Formula = "='" & myDir & "\[" & fn & "]" & sn & "'!B1"
.Value = .Value
However, this pastes the actual values, not the formulas (cell B1 of the source workbook is a formula). But what I need is the actual formula text pasted into the master workbook.
I know it must be something simple I can add or change to what is provided in this existing thread, I just cannot figure out what that addition or edit is.
Any direction is appreciated. I'm using Windows XP and Excel 2010.
Thanks,
Doug
Bookmarks