Hello Everyone,
Need a vba code to extract data from worksheet name "Data" and copy to worksheet name "Report" , base on the value of "M1".
See desired output in worksheet name "Desired Output".
.::Thanks in advance::..
Hello Everyone,
Need a vba code to extract data from worksheet name "Data" and copy to worksheet name "Report" , base on the value of "M1".
See desired output in worksheet name "Desired Output".
.::Thanks in advance::..
Last edited by zelda13; 02-19-2024 at 05:40 AM.
Hello @zelda13 . You can do this using AutoFilter. Try this code:
Good Luck.Please Login or Register to view this content.
Last edited by MikeVol; 02-19-2024 at 01:43 AM. Reason: Update
NOTE: As the original poster/owner, only you can mark your thread as SOLVED (Thread Tools above Post #1).
You can say "Thanks" in your thread to everyone who offered to help you.
You can also reward them by clicking * "Add Reputation" under their username on the left.
With Regards, MikeVol.
Hi @Mike
Thank you and appreciate your help.
May I ask you to adjust your provided code.
It appears that the data extracted overwrite the Header in Report Worksheet.
Thanks
Regards
zelda13
No, you are wrong that the extracted data overwrites the header in the Report Worksheet. Unless, of course, your header is on both Worksheet in the first line. This line is responsible for copying from the Data Worksheet:, it takes the range starting from the second row after the header.Please Login or Register to view this content.
And this line is responsible for inserting data onto the Report Worksheet:, accordingly inserts data into the Report Worksheet starting from cell A2, second row.Please Login or Register to view this content.
Simply,
Please Login or Register to view this content.
If you have O365, you can do it by formula.
Report!A2
Please Login or Register to view this content.
[QUOTE=, accordingly inserts data into the Report Worksheet starting from cell A2, second row.[/QUOTE]
@Mike
Got it... Thank you!
I appreciate your taking the time to write a reference for me.
Regards
zelda13
@windknife
Thank you for providing a formula but I need a vba code.
@jindon
Thank you for providing the alternate code.
@zelda13. You're welcome and thanks for rep+
Sorry for my English. Good luck.
Guys,
Please do me a favor...I forgot to mention that column A & G are excluded in my report.
Could you please rewrite the code that you have provided, if possible. Thanks
Sorry for the inconvenience.
Like this
Please Login or Register to view this content.
Untested!
Change this line in my code:
with this:Please Login or Register to view this content.
Please Login or Register to view this content.
@Mike @jindon
Thank you so much for the help.
Regards
zelda13
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks