Hi There,
This forum has been helpful to me from time to time ..!! Its helping me in learning as well as writing small automation. However, I am struck at this point in the automation I am working upon.
It would be kind of anyone who could help me with this.
Thanks a ton in advance.
Scenario:
There is data in the Master sheet and General Leder Sheet. The master sheet is linked to SAP and will be refreshed entirely (The full sheet will be deleted and refreshed data pops up) every time we run a macro.
The General ledger will have lines from the Master file with an additional column (Z) "Formula".
I want a vba code that helps me to find new lines from Master sheet and add in general ledger without disturbing the column Z
To check if the line is unique or not we will use a combination of A2,D2,F2,G2,K2,P2 respectively.
In view to hide PII, I have prepared a Demo file and updating here for reference.
Hope to receive some help soon ..!!
Master Data
General Ledger
Thank you
This forum has been helpful to me from time to time ..!! Its helping me in learning as well as writing small automation. However, I am struck at this point in the automation I am working upon.
It would be kind of anyone who could help me with this.
Thanks a ton in advance.
Scenario:
There is data in the Master sheet and General Leder Sheet. The master sheet is linked to SAP and will be refreshed entirely (The full sheet will be deleted and refreshed data pops up) every time we run a macro.
The General ledger will have lines from the Master file with an additional column (Z) "Formula".
I want a vba code that helps me to find new lines from Master sheet and add in general ledger without disturbing the column Z
To check if the line is unique or not we will use a combination of A2,D2,F2,G2,K2,P2 respectively.
In view to hide PII, I have prepared a Demo file and updating here for reference.
Hope to receive some help soon ..!!
Master Data
Tracking Trial balance.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 | |||
1 | Account | Account Name | RC Number | RC Name | Comp Cd | PD Date | DocTyp | SAP Number | Quantities | Currency | Amount | Assignment RC | Header Text | SA Number | Doc. No. | Item Text | Personnel No | WBS Element | Reference key 3 | Fiscal Year | Posting period | General Ledger Item | Document Date | Reference | General Ledger Amount | ||
2 | 123456 | Advance | 2066 | Khaan | Staff | 1/7/2012 | ZJ | 111111 | 0 | INR | 34,789.78 | Cleanup | SREEKANTH1 | 123456-Khaan - Staff | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 34,789.78 | ||||||||
3 | 123456 | Advance | 2066 | Khaan | Staff | 1/7/2012 | ZJ | 111111 | 0 | INR | 8,215.74 | Cleanup | SREEKANTH1 | 123456-Khaan - Staff | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 8,215.74 | ||||||||
4 | 123456 | Advance | 3893 | Patwar | Third Part | 1/7/2012 | ZJ | 111111 | 0 | INR | 79,512.35 | Cleanup | SREEKANTH1 | 123456-Patwar - Third Part | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 79,512.35 | ||||||||
5 | 123456 | Advance | 3893 | Patwar | Third Part | 1/7/2012 | ZJ | 111111 | 0 | INR | 19,132.76 | Cleanup | SREEKANTH1 | 123456-Patwar - Third Part | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 19,132.76 | ||||||||
6 | 123456 | Advance | 8096 | Hari | Manager | 1/7/2012 | ZJ | 111111 | 0 | INR | 124,497.24 | Cleanup | SREEKANTH1 | 123456-Hari - Manager | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 124,497.24 | ||||||||
7 | 123456 | Advance | 8096 | Hari | Manager | 1/7/2012 | ZJ | 111111 | 0 | INR | 54,740.41 | Cleanup | SREEKANTH1 | 123456-Hari - Manager | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 54,740.41 | ||||||||
8 | 123456 | Advance | 8606 | Gandhi | AVP | 1/7/2012 | ZJ | 111111 | 0 | INR | 150,638.91 | Cleanup | SREEKANTH1 | 123456-Gandhi - AVP | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 150,638.91 | ||||||||
9 | 123456 | Advance | 8606 | Gandhi | AVP | 1/7/2012 | ZJ | 111111 | 0 | INR | 55,805.47 | Cleanup | SREEKANTH1 | 123456-Gandhi - AVP | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 55,805.47 | ||||||||
10 | 123456 | Advance | 8710 | Ramcharan | Staff | 1/7/2012 | ZJ | 111111 | 0 | INR | 120,838.14 | Cleanup | SREEKANTH1 | 123456-Ramcharan - Staff | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 120,838.14 | ||||||||
11 | 123456 | Advance | 8710 | Ramcharan | Staff | 1/7/2012 | ZJ | 111111 | 0 | INR | 39,459.02 | Cleanup | SREEKANTH1 | 123456-Ramcharan - Staff | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 39,459.02 | ||||||||
Master Data |
General Ledger
Tracking Trial balance.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 | |||
1 | Account | Account Name | RC Number | RC Name | Comp Cd | PD Date | DocTyp | SAP Number | Quantities | Currency | Amount | Assignment RC | Header Text | SA Number | Doc. No. | Item Text | Personnel No | WBS Element | Reference key 3 | Fiscal Year | Posting period | General Ledger Item | Document Date | Reference | General Ledger Amount | FORMULA | ||
2 | 123456 | Advance | 2066 | Khaan | Staff | 1/7/2012 | ZJ | 111111 | 0 | INR | 34,789.78 | Cleanup | SREEKANTH1 | 123456-Khaan - Staff | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 34,789.78 | xyz | ||||||||
3 | 123456 | Advance | 2066 | Khaan | Staff | 1/7/2012 | ZJ | 111111 | 0 | INR | 8,215.74 | Cleanup | SREEKANTH1 | 123456-Khaan - Staff | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 8,215.74 | yzw | ||||||||
4 | 123456 | Advance | 3893 | Patwar | Third Part | 1/7/2012 | ZJ | 111111 | 0 | INR | 79,512.35 | Cleanup | SREEKANTH1 | 123456-Patwar - Third Part | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 79,512.35 | abc | ||||||||
5 | 123456 | Advance | 3893 | Patwar | Third Part | 1/7/2012 | ZJ | 111111 | 0 | INR | 19,132.76 | Cleanup | SREEKANTH1 | 123456-Patwar - Third Part | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 19,132.76 | bcd | ||||||||
6 | 123456 | Advance | 8096 | Hari | Manager | 1/7/2012 | ZJ | 111111 | 0 | INR | 124,497.24 | Cleanup | SREEKANTH1 | 123456-Hari - Manager | 0 | 2012 | 1/7/2012 | SREEKANTH1 | 124,497.24 | xyz | ||||||||
General Ledger |
Thank you