Ferrito
New Member
- Joined
- Jul 10, 2024
- Messages
- 3
- Office Version
- Prefer Not To Say
- Platform
- Windows
Hello, I've been trying to learn VBA to help automate some things at work, but i'm finding the layering of multiple variables difficult. I know how to move 1 line at a time from one tab to another but my current dilemma is how to look at the entire worksheet and move each row to different sheets/tabs.
I.e, I want to look at each row within sheet1 and move (cut-paste) to either sheet2, sheet3, sheet4 etc. based on the information in a specific column.
For example, say column E listed the species of pet someone had, if it says "cat" I'd want that entire row moved to the sheet named "feline", but if it said "dog" I'd want the entire row moved to the sheet named "canine" instead ect.
(for reference all sheets have 2 header rows, so data starts on row 3, and the columns of data are run from A to X)
any pointers in the right direction would be greatly appreciated, thank you
I.e, I want to look at each row within sheet1 and move (cut-paste) to either sheet2, sheet3, sheet4 etc. based on the information in a specific column.
For example, say column E listed the species of pet someone had, if it says "cat" I'd want that entire row moved to the sheet named "feline", but if it said "dog" I'd want the entire row moved to the sheet named "canine" instead ect.
(for reference all sheets have 2 header rows, so data starts on row 3, and the columns of data are run from A to X)
any pointers in the right direction would be greatly appreciated, thank you
