I am not sure if this request requires VBA programming or not. Basically, I am trying to automate a copy and paste function.
I have a cell data range from A114 to I152/153 (merged cell) in a worksheet titled CONTRACT. My goal is to have whatever is showing on worksheet CONTRACT to also be applied to worksheet titled INVOICE #1. Meaning, if I were to delete entire rows or add entire rows to worksheet CONTRACT, that the resulting table within CONTACT is identical to what is shown on INVOICE #1. But I want to do this without have to RE-copy and paste once a change is made within CONTRACT.
Able to be done with VBA? If not, how can it be done with VBA?
My usage of VBA programming is very very minimal = noob.
Thanks in advance!
Last edited by clemsoncooz; 12-28-2011 at 12:24 PM.
Hi,
This requires VBA.
A simple macro can be created which will copy data from CONTRACT and paste in INVOICE #1 every time you do something on CONTRACT sheet. This can also be triggered via a custom button. If you are fine with this, would request you to upload the sample workbook containing above mentioned worksheets. Thanks.
Regards,
DILIPandey
<click on below 'star' if this helps>
DILIPandey
+919810929744
dilipandey@gmail.com
Okay - I am uploading a sample workbook to explain my problem.
If you look at the attached and look at worksheet 'CONTRACT.' Say I want to delete entire ROW 15 (Red5/Red6). I would then want entire ROW 4 deleted from worksheet INVOICE#1.
If I wanted to insert a row above Row 22 on CONTRACT (below white5/white 6 and above white7/white8) then I would want an row inserted above row 11 on INVOICE#1.
These are only examples and not the exact actions that I want to occur. I am only using this as an illustration so that whatever occurs to the data on CONTRACT, I also want the same thing to happen in INVOICE#1 reagardless of the location of the data (meaing that the beginning and ending locations of the data ranges do not occur in the same locations on the worksheets).
sample.xlsx
Does this make sense?
Thanks for looking at this with me!
Hi,
Thanks for providing details.
Check the attached workbook where I have provided a macro which works as per current scenario, but off course you might need to change the references to suit this to your actual workbook / worksheets. Open the macro (alt + f11) and edit the codes below my green remarks.
Hope this helps
Regards,
DILIPandey
<click on below 'star' if this helps>
DILIPandey
+919810929744
dilipandey@gmail.com
very cool.
Thank you.
You are welcome...
Cheers
Regards,
DILIPandey
<click on below 'star' if this helps>
DILIPandey
+919810929744
dilipandey@gmail.com
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks