VBA Copy Paste

bhalbach

Board Regular
Joined
Mar 15, 2018
Messages
221
Office Version
  1. 2016
Platform
  1. Windows
I really need some assistance if someone could help...likely really easy for you guys.

I have been searching for examples I could use for 2 days...

I am trying to use VBA to copy data from multiple worksheets within a workbook to a worksheet called "Data" within the workbook.
- copy multiple data from sheets in the workbook, excluding some sheets that may or may not be hidded.
- the data comes from various cells in the sheets and needs to go to specific columns on the "Data" sheet
- the "data" sheet has the names of the sheets/tabs already in it starting at A3...the sheets/tabs were created from the "Data" sheet using VBA and I would like to validate the data coming from each sheet to the names in column A
- avoiding the screen flicker would be nice
- Can this be accomplished automatically without a command button? Like live data, as I work in the workbook.

P
lease help.

Brent
 
Oh...and the double click shortcut on the Data sheet that will hyperlink to the corresponding EstSheet.
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
And for whatever reason the "Update EstSheet" button is not updating.
 
Upvote 0
I think that the problem I'm having in getting this right is that I am working with EstSheet, Tsksheet and Progress sheets that don't have any data. Therefore it's difficult to test the macros to see if data is being copied and pasted in the right places. Can you upload a version of the file that contains data in all these sheets, a version that is giving you the problems you described? Maybe we can finally get this done!
 
Upvote 0
Click here.
I've modified the formulas in row 2 of "Data" starting in column I to add up to row 1000. If you need more rows, just change the formulas to suit. I've also modified the code to add the Progress sheets to the left instead of right.
 
Last edited:
Upvote 0
Mumps,

Just 1 think I have found.

When click "Build Progress" on Data...If there are no values in Columns "A,B,C" on "Data" the Build Progress will error.

Everything else seems to be working without any issues.
 
Upvote 0
Another thing is I cannot protect sheets without error. I suspect because of copying and updating going on thought the workbook.

Can anything be done with this? My formulas are at risk otherwise.
 
Upvote 0
To fix the first problem, replace this line of code in the BuildProgress macro:
Code:
fBlankRow = dSht.Range("A" & dSht.Rows.Count).End(xlUp).Row
with this line:
Code:
 fBlankRow = dSht.Range("D" & dSht.Rows.Count).End(xlUp).Row
Which sheets do you want to protect?
 
Upvote 0
I was wanting to lock all cells that are not needed for data entry.

At a minimum I would like to protect EstSheet's, TskSheet's, Data, All Progress's, Indirects.

I have information & formulas in every sheet that I would like to protect ideally.
 
Upvote 0
On the EstSheet, TskSheet and Progress blank templates, lock all the cells you want to protect and unlock those cells that you use for data entry. Do the same for the Data and Indirects sheets. Once you've done that, upload a copy of the file.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top