Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2024, 03:53 PM
Ronelle2s Ronelle2s is offline Copy one worksheet to another using value and pastespecial Windows XP Copy one worksheet to another using value and pastespecial Office 2021
Novice
Copy one worksheet to another using value and pastespecial
 
Join Date: Aug 2024
Posts: 3
Ronelle2s is on a distinguished road
Default Copy one worksheet to another using value and pastespecial

I am really new to writing macros and VBA coding. I really could use the help to finish my project.

I am working on an Excel file to copy rows from one worksheet to another worksheet in the same workbook. Basically, we want any rows from the source worksheet that do not have "Completed" in the status column to copy to a "SummaryOrderTracking" worksheet.
I have created the following macro to make this happen, with the exception of the pastespecial for the columns with formulas and dropdown list. I cannot get the pastespecial to work. Also, i understand I probably shouldn't use "select" in the code, which I have done.
I would like the copying to happen automatically, but still allow users to add rows and update data on the source worksheet. Is there a way to have the "SummaryOrderTracking" worksheet to be updated upon opening the workbook, along with updating when any new rows are added or data is updated in the source worksheet?


I have attached two copies of what I currently have. One file is with VBA coding to automatically update the "SummaryOrderTracking" sheet when data is changed to the source sheet. But it is glitchy and we cannot add any more rows of data. The other is with using a Macro to update the "SummaryOrderTracking" sheet. I did not create a button because there isn't any really good place to put the button on the worksheet, so I am not sure where to put it.
Any help with this project would be greatly appreciated.
Attached Files
File Type: xlsm vending list test excel_Upload_VBA.xlsm (20.6 KB, 4 views)
File Type: xlsm vending list test excel_Upload_Macro.xlsm (25.6 KB, 2 views)
Reply With Quote
  #2  
Old 08-24-2024, 02:30 AM
ArviLaanemets ArviLaanemets is offline Copy one worksheet to another using value and pastespecial Windows 8 Copy one worksheet to another using value and pastespecial Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Having same data, or data what can be calculated based on existing data, is a bad practice.

For your case, the best solution would be a report sheet (probably with some fields to enter or select report conditions), where wanted report table is calculated based on data entry table you have currently (and on conditions set at top of report sheet).
Reply With Quote
  #3  
Old 08-24-2024, 06:32 AM
Ronelle2s Ronelle2s is offline Copy one worksheet to another using value and pastespecial Windows XP Copy one worksheet to another using value and pastespecial Office 2021
Novice
Copy one worksheet to another using value and pastespecial
 
Join Date: Aug 2024
Posts: 3
Ronelle2s is on a distinguished road
Default

I am not sure I understand this. Is there an example of this I can review.
Reply With Quote
  #4  
Old 08-26-2024, 02:03 AM
ArviLaanemets ArviLaanemets is offline Copy one worksheet to another using value and pastespecial Windows 8 Copy one worksheet to another using value and pastespecial Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

From your example file, it remains unclear, what you really want to do. Attached is a file with an example, how I'd set up the data entry, and how a report sheet may be designed.
But I have there no info, how the data really must be read into report. P.e. there are several rows for same article, with some of them completed, and some pending or back ordered. How to handle such records? E.g. must all records not completed, and having ListDate earlier than the row with completed status, left out? Or some other rule must applied?
Attached Files
File Type: xlsx WendingList.xlsx (40.0 KB, 5 views)
Reply With Quote
  #5  
Old 09-09-2024, 11:38 AM
Ronelle2s Ronelle2s is offline Copy one worksheet to another using value and pastespecial Windows XP Copy one worksheet to another using value and pastespecial Office 2021
Novice
Copy one worksheet to another using value and pastespecial
 
Join Date: Aug 2024
Posts: 3
Ronelle2s is on a distinguished road
Default Forgot the attachment.

I apologize for the very delayed response. And I truly appreciate all the time and effort you put into creating an example based on our data.
We were hoping to make the view for the end user very very basic excel worksheet looking and no formulas that could be deleted. We know we can go through and lock down cells for the formulas but we thought it would be better for all involved to use VBA to build our project.
We did get further with VBA between my first post and your response with the example you created. I am attaching a copy. But there are issue with the button and as we reviewed the project with the people needing it there were more requests.
We are looking closely at what you provided and seeing how we might go in that direction instead of what we currently have.
The data in the attached is true data. There are no duplicates per dates and PO numbers.
What we are looking for is a way the end user can see all the "DailyList" worksheet, but use the "SummaryOrderTracking" worksheet to update to the "DailyList" with List date, PO number and Status.

Last edited by Ronelle2s; 09-09-2024 at 11:39 AM. Reason: Forgot the attachment.
Reply With Quote
Reply

Tags
glitchy, pastespecial, summaryordertracking



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy a shape from one worksheet to another BobBridges Excel Programming 0 05-06-2022 05:02 PM
Copy one worksheet to another using value and pastespecial Link UserForm checkbox to corresponding shape on one worksheet and copy to 'template' worksheet kiwimtnbkr Excel Programming 23 10-08-2020 02:32 AM
Copy one worksheet to another using value and pastespecial How do you copy a row from one worksheet to another? mars1886 Excel Programming 3 02-11-2014 02:12 PM
Copy Worksheet and preserve formulas silverspr Excel 4 02-21-2013 07:51 AM
Copy one worksheet to another using value and pastespecial Is it correct (PasteSpecial function) gsrikanth Excel Programming 7 01-17-2012 11:23 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft