Hello,
I am designing a project where I have to make a macro in excel. I have done most of it but now I am stuck at one piece and have no clue how to go about it.
There are two worksheets in the file: “Prefund” and “Settled Wire”
I have a macro that creates these two sheets and dumbs the data in it. Once the Prefund sheet is created the macro has to stop and the user has to see if column H has any values in it. If there is one then the user has to input the value in column I against the row that has a difference of non zero. For example cell H3 has a value (non zero) and hence the user sees it and then inputs the value in cell I3. (We are going to train the users to do so).
A B C D E F G H I
1 A 2 01 26 41079 41079 0
2 B 1 02 27 -21008 -20000 1008
3 C 1 03 28 12000 12000 0
4 D 1 04 29 10000 10000 0
5 E 1 05 30 13567 135675 0
Once the value is entered then the pertaining information is to be recorded in “Settled Wire” Sheet
To make this happen I have to create a button in “Prefund” Sheet. Once the user enters the value in column I he should hit this button and then another macro runs to record the pertaining data into “Settled Wire” sheet.
I was hoping if you could guide me with following things?
•How to write a code to create a button in “Prefund” sheet
•How to assign a script/code to this button- I can write the script but I don’t know how to assign this script to the code???
Any help is really appreciated.
Thanks a ton!
I am designing a project where I have to make a macro in excel. I have done most of it but now I am stuck at one piece and have no clue how to go about it.
There are two worksheets in the file: “Prefund” and “Settled Wire”
I have a macro that creates these two sheets and dumbs the data in it. Once the Prefund sheet is created the macro has to stop and the user has to see if column H has any values in it. If there is one then the user has to input the value in column I against the row that has a difference of non zero. For example cell H3 has a value (non zero) and hence the user sees it and then inputs the value in cell I3. (We are going to train the users to do so).
A B C D E F G H I
1 A 2 01 26 41079 41079 0
2 B 1 02 27 -21008 -20000 1008
3 C 1 03 28 12000 12000 0
4 D 1 04 29 10000 10000 0
5 E 1 05 30 13567 135675 0
Once the value is entered then the pertaining information is to be recorded in “Settled Wire” Sheet
To make this happen I have to create a button in “Prefund” Sheet. Once the user enters the value in column I he should hit this button and then another macro runs to record the pertaining data into “Settled Wire” sheet.
I was hoping if you could guide me with following things?
•How to write a code to create a button in “Prefund” sheet
•How to assign a script/code to this button- I can write the script but I don’t know how to assign this script to the code???
Any help is really appreciated.
Thanks a ton!