Paste Values in linked Cells Only

B

Bean Counter

Goodmorning Everyone!

I have a worksheet within a workbook that contains 1500 rows of data over 14
columns (the 12 months, plus to summary columns) - called the "Year to Date"
sheet. The YTD sheet has links to other worksheets within the same workbook.
This workbook is used as a roll forward workbook. The YTD sheet does not
change, but all other worksheets in the workbook get updated with the current
months data. In preparing for a new month, I have written a macro that
cleans up a lot of the data from the last month. The problem is that I want
the YTD worksheet formulas to remain as constant as possible. One thought
that comes to mind is to copy/paste special values only in the cells that
link to other worksheets - not all of the formulas - only those linked to
other worksheets. The only issue is that it would be too time consuming to
do this on a cell by cell basis. Another problem is that I would want to
only update the column for the current month with the values only, and leave
the formulas in the other months columns... SOOO, a macro is definitely
needed...

how would I write a macro that does the following..

If cell B4(the current month ending date) = (a value in row 6 - the one that
corresponds to the current month end date), then select the whole column that
the value appears in. Search each cell and find all linked formulas. Paste
special, values only in those cells.
 
D

Don Guillett

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.
 
B

Bean Counter

Hi Don - thanks for the help. The message has been sent to your email address.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top