uncleslinky
New Member
- Joined
- Mar 31, 2009
- Messages
- 47
Hi
I'm looking to automate a small copy & paste process with a macro but I'm having problems knowing where to start. I can record a macro to figure out some of copy and paste parts but I'd also need an if statement.
I have Sheet 1 where I want to look in column B to see if the value "YES" occurs, if so I want to copy the 8 adjacent cells - not including column B - so from column C:J for that row. This would then need to be pasted in Sheet 2, Column A at the next available Row.
I would then need to restart the process but this time instead of looking in Column C on Sheet 1 and, I'd need to now look in Column M for "YES" then copy the next 8 adjacent cells as before and again paste values to the next available row in Sheet 2.
I hope this makes sense (and that I've not missed any detail)
Any input would be great
Thanks
Rich
I'm looking to automate a small copy & paste process with a macro but I'm having problems knowing where to start. I can record a macro to figure out some of copy and paste parts but I'd also need an if statement.
I have Sheet 1 where I want to look in column B to see if the value "YES" occurs, if so I want to copy the 8 adjacent cells - not including column B - so from column C:J for that row. This would then need to be pasted in Sheet 2, Column A at the next available Row.
I would then need to restart the process but this time instead of looking in Column C on Sheet 1 and, I'd need to now look in Column M for "YES" then copy the next 8 adjacent cells as before and again paste values to the next available row in Sheet 2.
I hope this makes sense (and that I've not missed any detail)
Any input would be great
Thanks
Rich