Godspeed64
New Member
- Joined
- Oct 9, 2014
- Messages
- 20
Hi all. I'm completely new to the world of excel (just started using it a month plus ago, and have learnt the basic functions like Pivoting and VLOOKUP), but I need some help in learning macros.
Currently, I am designing in template that requires a specific function and I've read multiple threads and watched a few videos, blindly following the commands and watching them fail.
Basically, I would want a Command button for a worksheet, that would copy paste (special) rows into two different worksheets, based on cell values.
In my worksheet, A5 to U5 would be the headers.
My "trigger" cells are O6 and Q6 onwards (in a year, it would roughly reach 300 rows). If "O" hits a probability and matches the status in "Q, clicking on the Command button would copy this row (from A6 to U6) into another sheet.
Eg. O6 is 100%, Q6 is WIN, the entire row is pasted into a different master worksheet. If O6 is 0% and Q6 is LOST, there is another worksheet the data has to go to. The two cells are data validated and have conditional formatting to reduce human error, now I'm trying to automate the process for efficiency and cleaner data.
The end result is that 6 worksheets managed by different people (I will reuse the code of the command button if I understand the logic), would have command buttons each that feed 2 specific worksheets for WIN and LOST. The code has to keep adding on rows that qualify to the two worksheets, without double counting those that have already been pasted into the worksheet.
I thank you if you can lead me to a relevant video, tutorial, or assist me in teaching me how to code. I enjoy using excel in the past month and have done so much with it!
Thank you. :D
Currently, I am designing in template that requires a specific function and I've read multiple threads and watched a few videos, blindly following the commands and watching them fail.
Basically, I would want a Command button for a worksheet, that would copy paste (special) rows into two different worksheets, based on cell values.
In my worksheet, A5 to U5 would be the headers.
My "trigger" cells are O6 and Q6 onwards (in a year, it would roughly reach 300 rows). If "O" hits a probability and matches the status in "Q, clicking on the Command button would copy this row (from A6 to U6) into another sheet.
Eg. O6 is 100%, Q6 is WIN, the entire row is pasted into a different master worksheet. If O6 is 0% and Q6 is LOST, there is another worksheet the data has to go to. The two cells are data validated and have conditional formatting to reduce human error, now I'm trying to automate the process for efficiency and cleaner data.
The end result is that 6 worksheets managed by different people (I will reuse the code of the command button if I understand the logic), would have command buttons each that feed 2 specific worksheets for WIN and LOST. The code has to keep adding on rows that qualify to the two worksheets, without double counting those that have already been pasted into the worksheet.
I thank you if you can lead me to a relevant video, tutorial, or assist me in teaching me how to code. I enjoy using excel in the past month and have done so much with it!
Thank you. :D