1) ask for The location
2) you are correct
3) yes the data is not always the same so it may be inconsistent
4) single cells to leave out
Main Topics
Browse All TopicsSo in excel i have workbook TEST1 in it I have A1-L1 labeled as each month. the accounting info for example is in A2-A33 and the sum is in A34 and another bunch of accounting info is A36-A50 with the sum for those in A51. It continues like this for each month up until this month. At the end of each month the accounting software comes up with a new excel workbook (TEST2) and is saved to any random location i chose at the time. BTW the workbook it creates is a near replica with the new months info and some small change of of previous months. after i get the necessary data from it i delete the file that the accounting software made.
So i have all the data from Jan to Aug filled in on TEST1 but every month when I get TEST2 I have to manually highlight and copy all the data and paste it from TEST2 to TEST1 but not pasting over the subtotals . there are also random comment cells that do not need to be pasted over.
What I am looking for is a VB script that will help me with pop ups that that let me select the "From workbook" the "to workbook" the "cells to copy over" and "the cells to skip over" something where I can actually put some user feedback because the from file may be named differently.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
sorry, been busy
1/ may be possible but not so easy and will be slow.
2/ What is to happen with say cell E19 & G19 ? (assuming F19 is an ignore) Are they to get copied over with data?
3/ What if the 'ignore' cells were blanked and then the full range was copied over. Would that get the output you want ?
version2 attached.
process..
0/ assumes the current workbook+sheet+cell is the destination location for copy.
1/opens the source workbook readonly,
2/ asks for selection of overall range
3/ ask for selection of ignore range. can be multiple cells selected
4/ blanks the ignore cells
5/ copies the overall range to the starting cell location in destination workbook
6/ closes the source workbook with saving any changes.
this is actually quite quick
Business Accounts
Answer for Membership
by: robberbaronPosted on 2009-09-25 at 21:49:07ID: 25428811
1/ is the From workbook always open or do you want the script to ask for the location ?
2/ I would have expected the "TO" workbook to be the current one, from where the macro is running. so no need to ask for it.
3/ I assume the amount and formating of data month to month is not consistent ?
4/ how are the source data and source ignore ranges setup ? Are they entire rows ?
Please post a sample Source and destination workbooks as it makes it so much easier to understand your proposals.
Select allOpen in new window