tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,194
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
hope i can make this clear
what i need is a macro to assign dispatch number from one sheet into column AN of another.
So in Sheet "Numbers" column A i have a list of values (Dispatch numbers), each value is unique, for simplicity lets say they are A,B,C,D etc
now in sheets "overviews" Column K i have my order numbers.
now what i want is a macro that can start at Sheet "overviews" Column AN find first empty cell, look at column K and see what the order number is, goto sheet "Numbers" cell B2 to get the dispatch number and add it to Column AN
now the tricky bit, there are often but not always more than one row with the same Order Number, so now i need the macro to go down column K find every row that has that same order number and place the dispatch number in column AN of that row.
once they are all done delete sheet "Numbers" cell B2 moving the next dispatch number up into b2, then do it again and again until all rows have dispatch numbers
hope i can make this clear
what i need is a macro to assign dispatch number from one sheet into column AN of another.
So in Sheet "Numbers" column A i have a list of values (Dispatch numbers), each value is unique, for simplicity lets say they are A,B,C,D etc
now in sheets "overviews" Column K i have my order numbers.
now what i want is a macro that can start at Sheet "overviews" Column AN find first empty cell, look at column K and see what the order number is, goto sheet "Numbers" cell B2 to get the dispatch number and add it to Column AN
now the tricky bit, there are often but not always more than one row with the same Order Number, so now i need the macro to go down column K find every row that has that same order number and place the dispatch number in column AN of that row.
once they are all done delete sheet "Numbers" cell B2 moving the next dispatch number up into b2, then do it again and again until all rows have dispatch numbers