Hi Everyone,
I am new to VBA and new to this forum, so any help would be gratefully recieved.
I have a spread sheet that has the Months of the year in column A, then there are 4 values for each month in columns B,C,D,E.
Example:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> A B C D E</o>
Jan 100 97 98 99
<o> </o>
I have built a userform with a combobox which I have populated with the list of months in column A by using the RowSource field in the combobox property window.
<o> </o>
What I am trying to do is to copy all of the data of the relevant row which is selected by the month in the combobox.
<o> </o>
i.e.
The user opens the userform and from the combo box selects Jan (as example above)
I then want to be able to copy all of the data on the “Jan” Row and paste it into a separate sheet.
<o> </o>
I can achieve the copy and paste section by using macro recorder but I am struggling to work out how to select the entire row from the combobox selection.
<o> </o>
Can anyone help?
Thanks in advance
Craig
I am new to VBA and new to this forum, so any help would be gratefully recieved.
I have a spread sheet that has the Months of the year in column A, then there are 4 values for each month in columns B,C,D,E.
Example:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> A B C D E</o>
Jan 100 97 98 99
<o> </o>
I have built a userform with a combobox which I have populated with the list of months in column A by using the RowSource field in the combobox property window.
<o> </o>
What I am trying to do is to copy all of the data of the relevant row which is selected by the month in the combobox.
<o> </o>
i.e.
The user opens the userform and from the combo box selects Jan (as example above)
I then want to be able to copy all of the data on the “Jan” Row and paste it into a separate sheet.
<o> </o>
I can achieve the copy and paste section by using macro recorder but I am struggling to work out how to select the entire row from the combobox selection.
<o> </o>
Can anyone help?
Thanks in advance
Craig