I want to copy data from multiple worksheets into MASTER worksheets. Can anyone help please?
User clicks a button and it copies data into MASTER from all worksheets. I have attached the test template.
Thanks
Printable View
I want to copy data from multiple worksheets into MASTER worksheets. Can anyone help please?
User clicks a button and it copies data into MASTER from all worksheets. I have attached the test template.
Thanks
File attached.
Try this Tex. You have to delete the master sheet because it is created by the script.
I deleted your Master but it looked like it had some code where you were trying to get this to work........let me know how close we are....
:clap:Quote:
let me know how close we are....
I would delete all but rows 1:2 above the try me button first. i.e get rid of the extra headers.
i want to give a button on master worksheet on right hand side. the data will flow to master worksheet and pull corresponding data from all worksheets on clicking this button. how do i do that? I am confused. and i am new to vba.
Maybe like this......?
Hi Lucas
I get an error message. See the attached file. Its on
CommandBars("My Toolbar").Delete
This code of line.
Also, how do I populate the date and time on the last column in Master worksheet. That will be the date and time when the macro is run each time.
Can you please help!
Hi
i have attached the file. and the button on MAIN Worksheet.
thanks
I fixed the error. Thats all i need for now:
How do I populate the date and time on the last column in Master worksheet. That will be the date and time when the macro is run each time.
To Run: Click button MAIN Worksheet.
Can you please help! Latest File is attached.
Latest file is attached.
How do I populate the date and time on the last column in Master worksheet. That will be the date and time when the macro is run each time.
To Run: Click button on MAIN Worksheet.
Can you please help! Latest File is attached
You keep asking for the last column for the date but I believe you mean the last row......see attached.
Can we display the date and time below the button on Main worksheet used to run the macro?
yes, you just reference the sheet main and the cell that you want to put the date in and make it's value = to Now
[VBA] Sheets("Main").Range("C6").Value = Now[/VBA]
i did this..it RESOLVED it.
Sheets("Main").Select
ActiveCell.FormulaR1C1 = ""
ActiveCell.FormulaR1C1 = "=NOW()"
Range("C10").Select
Looks like you found your macro recorder......good. You should take a look at the code I posted as all of the extra selects are unnecessary. Another thing in your code when you select the sheet.....which cell is selected? If if is not the one you want the date in then the wrong cell will get the date.....
compare my code to yours and see if you can understand what is going on. Good to see you are learning something from the exercise.
it updates date into where the cursor was last along with c10. how do i get it ONLY on c10 on main worksheet.
i am good disregard my last posting.
Hi LUCAS
The last row saved on running the macro is same as HEADER row in MASTER. Can we fix that? See attached file. We do not want to repeat the HEADER row at the bottom again.
THANKS
You have a sheet named "Unknown" on that sheet you have no data in column "A" - as a result, it's causing the first row to be copied over do to the nature of the code. Put some data in that column and it will work.Quote:
The last row saved on running the macro is same as HEADER row in MASTER. Can we fix that? See attached file. We do not want to repeat the HEADER row at the bottom again.
In your situation column A is mandatory!
Yep, sheet unknown is the culprit. Delete it and run the code to see what David is talking about.
By the way, this kind of request is most annoying.
You are really lucky to get people to help you with this as you seem not to be the least bit interested in learning.......you just want a working solution.Quote:
DEFECT-NEED HELP!!!!
We have places here where you can pay for complete solutions. In the future you should be trying to get some of the code working for yourself and ask specific questions. I will not be inclined to help you further until you start trying to learn. As I said, complete solutions are available for pay.......
If you had been trying to learn or where even paying any attention then you would not have been in a panic over the last problem.....you should have had some idea how the code works by now......
On top of that you seem to feel free to be demanding of our time and knowledge......please be courteous and respectful.