Hello Forum
This is my first time using it. I'm very inexperienced when it comes to using vba. I'm hoping someone can assist me in writing macro vba code to accomplish the following. I have 4 columns: A (Account Code) B (Dr) C (Cr) D (Description) - as indicated below
Account Code Dr Cr Description
13410 10 0 Narration 1
13420 20 0 Narration 2
13430 30 0 Narration 3
13440 40 0 Narration 4
Every time the macro sees the account code of 13410 in column A a blank row needs to be inserted below and a corresponding credit amount in column C needs to be entered with say an account code of 98450 with the same narration.
Again every time the macro sees the account code of 13430 a blank row needs to be inserted and a corresponding credit line in column C needs to be entered with say an account of 97730 with the same narration.
Looking like this:
Account Code Dr Cr Description
13410 10 0 Narration 1
98450 0 10 Narration 1
13420 20 0 Narration 2
13430 30 0 Narration 3
97730 0 30 Narration 3
13440 40 0 Narration 4
I will be very much appreciated. I haven't found any forums with two criteria and hence hopeful someone can please assit.
Thanks heaps!!
James
Bookmarks