Hi there,
I'm a newcomer to the wonderful world of excel and am trying to use macros to automate otherwise tiresome labour. I've had some success using record macro to replicate my actions, but I now have some macros that I want to be a bit more generic that I'm having trouble with.
I have a worksheet that is split into 4 separate sections. The number of rows in each section will vary from day to day and week to week.
I'm trying to create a macro (to be activated by a button) that will search a column (G) in one section and if a cell (for example G7) has a certain value (for example 'withdrawn') then it will cut that entire row and relocate it to another section.
Now, so far I have been able to get it adding into the other section absolutely fine, but I just can't get my head around how to get it to identify the rows to move.
So essentially I'm looking for a macro to identify the row and cut it and then the existing code can do the rest. There are about 10 possible values that cell could contain where I would want it to be cut. The way the spreadsheet is used there will only be one row in that section which contains one of those values.
I've been searching the web for a couple of days for solutions and have not be able to find someone else with the same request or understand similar macros well enough to adapt them to my purpose so any assistance would be greatly appreciated.
Bookmarks