Hello again experts.
Although I always appreciate the expert advice and help I'm given here, I do want to become somewhat independent and resourceful!
I want to start adding arrays to my macros, and have never really understood the procedure. I am trying to learn on my own, through books and websites, but I seem to learn a lot faster by tinkering with code.
So, with all that said,
I was wondering if someone could use the spreadsheet example included, to build a simple macro, using an array to:
- if the value in column d is "Y" or "YES",
copy and paste columns A,G,and I onto sheet2.
I guess what I'm looking for is a simple formula/macro that utilzes an array to store the information, when a value is present(or true), and then paste that info into another page, for simplified viewing.
I know how to do it sloppily, searching through column D for my criteria, copying and pasting it into worksheet2, offsetting 1 row down, going back through column d on sheet1, looking for the next instance, and so on.
I appreciate anyones help, in getting me over this array hump, and helping me write cleaner and better vba code.
Thank you again,
-alex
p.s. can I attach the file from my computer or do I need to have an online storage account?
Although I always appreciate the expert advice and help I'm given here, I do want to become somewhat independent and resourceful!
I want to start adding arrays to my macros, and have never really understood the procedure. I am trying to learn on my own, through books and websites, but I seem to learn a lot faster by tinkering with code.
So, with all that said,
I was wondering if someone could use the spreadsheet example included, to build a simple macro, using an array to:
- if the value in column d is "Y" or "YES",
copy and paste columns A,G,and I onto sheet2.
I guess what I'm looking for is a simple formula/macro that utilzes an array to store the information, when a value is present(or true), and then paste that info into another page, for simplified viewing.
I know how to do it sloppily, searching through column D for my criteria, copying and pasting it into worksheet2, offsetting 1 row down, going back through column d on sheet1, looking for the next instance, and so on.
I appreciate anyones help, in getting me over this array hump, and helping me write cleaner and better vba code.
Thank you again,
-alex
p.s. can I attach the file from my computer or do I need to have an online storage account?