Kemidan2014
Board Regular
- Joined
- Apr 4, 2022
- Messages
- 229
- Office Version
- 365
- Platform
- Windows
I am hoping this wonderful community can help me once again! with one problem of using Copy paste to paste on criteria from one work sheet another has been solved. i found that becuase my SOURCE worksheet for this task is 1000+ rows and 22 columns of Vlookups referencing a master file who will be overwritten as needed based on information we get from customers. This is causing a very long processing time for the newly added copy paste macro to work. i have found that if my Sheet 1 source data is just text it works INSTANTLY.
my solution needs to be my source sheet also needs to be a copy pasted data from our Masterfile instead of Vlookups. and as it wont be as easy as using the same macro.
I want to copy and paste all rows of data from my master file but i want to EXCLUDE certain columns because this information is irrelevent.
Source: Master file has headers in Row 1, 39 Columns and then Data below that about 1000+ rows of it and grows over time
Destination: Current working file "Sheet1" Same headers in Row 1 but only 23 of the columns of information that we want in this sheet
how would i target in VBA to only copy those specified columns and give me all the corresponding information below that column.
heres headers from source file
heres what i want to get to
I apologize but due to nature of the info i cant publically share it. just assume there 1000+ rows of data in each cell below up and that will grow over time so lastrow will always be different.
my solution needs to be my source sheet also needs to be a copy pasted data from our Masterfile instead of Vlookups. and as it wont be as easy as using the same macro.
I want to copy and paste all rows of data from my master file but i want to EXCLUDE certain columns because this information is irrelevent.
Source: Master file has headers in Row 1, 39 Columns and then Data below that about 1000+ rows of it and grows over time
Destination: Current working file "Sheet1" Same headers in Row 1 but only 23 of the columns of information that we want in this sheet
how would i target in VBA to only copy those specified columns and give me all the corresponding information below that column.
heres headers from source file
ToyotaData.xlsx | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | AK | AL | AM | |||
1 | QIMS# | Doc Type | Instance Handle Key | Rank | Supplier Code | TMMC Supplier Code | Supplier Name | Part Name | Part Number | Overall Status | NCD Description | QEName | Full Name | Full Name | Model | SQA Rank | LT CM Plan Due | Original LTCM Actual Due Date | Revised LTCM Actual Due Date | Close | Initial Issuance Date | Official Issuance Date | LTCM Plan Submitted | LTCM Plan Accepted Date | LTCM Plan Rejection Date | LTCM Actual Submitted | LTCM Actual Accepted Date | LTCMActualRejectionDate | Occurence | Where NC found? | Will Parts Be Quarantined ? | Why Made Category | Why Shipped Category | NAMC | ST/CM Status | LT/CM Status | Standard | Actual | Assigned To | ||
Data |
heres what i want to get to
Customer database test 2.xlsm | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | |||
1 | QIMS# | Doc Type | Rank | Supplier Code | Part Name | Part Number | Overall Status | NCD Description | Model | LT CM Plan Due | Original LTCM Actual Due Date | Revised LTCM Actual Due Date | Close | Initial Issuance Date | Official Issuance Date | LTCM Plan Submitted | LTCM Plan Accepted Date | LTCM Plan Rejection Date | LTCM Actual Submitted | LTCM Actual Accepted Date | LTCMActualRejectionDate | NAMC | ||
Sheet1 |
I apologize but due to nature of the info i cant publically share it. just assume there 1000+ rows of data in each cell below up and that will grow over time so lastrow will always be different.