bgwhalen
New Member
- Joined
- Sep 11, 2024
- Messages
- 2
- Office Version
- Prefer Not To Say
- Platform
- Windows
Hello everyone,
I'm new to VBA programming in Excel and I'm trying to automate a process where I move a row from my "Training" sheet to a "Historical" sheet when the value in Column G (Status) is set to "Inactive." However, I keep encountering an error with my code, and I'm not sure how to fix it.
Here's a brief overview of what I have done so far:
1. **Trigger**: The code should run when the status in Column G is changed to "Inactive."
2. **Action**: Move the entire row from the "Training" sheet to the "Historical" sheet.
3. **Action**: The move button when clicked should move the row that has “Inactive” selected in Column G.
3. **Error**: I’m encountering an error when I run my code, but I’m unsure what the issue is.
I have attached pictures of my code and the relevant parts of my Excel file for reference.
Questions:
- What could be causing the error in my code?
- Is there a better way to structure this code?
- How can I ensure this runs automatically when the status is changed?
I appreciate any help or guidance you can provide!
Thank you!
I'm new to VBA programming in Excel and I'm trying to automate a process where I move a row from my "Training" sheet to a "Historical" sheet when the value in Column G (Status) is set to "Inactive." However, I keep encountering an error with my code, and I'm not sure how to fix it.
Here's a brief overview of what I have done so far:
1. **Trigger**: The code should run when the status in Column G is changed to "Inactive."
2. **Action**: Move the entire row from the "Training" sheet to the "Historical" sheet.
3. **Action**: The move button when clicked should move the row that has “Inactive” selected in Column G.
3. **Error**: I’m encountering an error when I run my code, but I’m unsure what the issue is.
I have attached pictures of my code and the relevant parts of my Excel file for reference.
Questions:
- What could be causing the error in my code?
- Is there a better way to structure this code?
- How can I ensure this runs automatically when the status is changed?
I appreciate any help or guidance you can provide!
Thank you!