inactiveuserps19
New Member
- Joined
- Feb 27, 2009
- Messages
- 48
Sorry if something like this has been asked before - my knowledge is so minimal I wouldn't even be able to recognise a similar problem!
I'm struggling to create a macro to do something fairly complicated. I have a spreadsheet with various sheets and a lot of data, and what I want to do is this:
1) Look at row 2 of sheet 1.
2) Find the first value that is greater than x (call that cell X)
3) Align that row so that X is in column Y.
4) Re-align the corresponding row by the same amount in sheet 2 (I suspect this is the hardest part)
5) Repeat 1) to 4) for every row in sheets 1 and 2.
I'd be extremely grateful for any help!
I'm struggling to create a macro to do something fairly complicated. I have a spreadsheet with various sheets and a lot of data, and what I want to do is this:
1) Look at row 2 of sheet 1.
2) Find the first value that is greater than x (call that cell X)
3) Align that row so that X is in column Y.
4) Re-align the corresponding row by the same amount in sheet 2 (I suspect this is the hardest part)
5) Repeat 1) to 4) for every row in sheets 1 and 2.
I'd be extremely grateful for any help!