My worksheet contains tracklistings and timings within the range H1:K100. In column H is a track number. In column J is a title , and in column K is a running time for each.
Unfortunately in some cases the timing element has become misplaced to column H.
I'm trying to tidy these worksheet entries using VBA.
Essentially , where the timing element has slipped into row H , it needs to be relocated to it's correct position in K.
For example , in the attached sample :
H9 would be moved to K8
H13 would be moved to K12
H20 would be moved to K19
H22 would be moved to K21
This being done , the cells with content would be selected and moved up to replace any empty cells and make a compact listing. Deleting empty rows would not be an option in this case , as it would affect other parts of the worksheet.
The macro would need to search the range H1:K100 and make corrections it finds. The content of H1:K100 does vary from tracklisting to tracklisting , but the error pattern is always the same.
I'm hoping someone can help with some code to satisfy this.
The attached sample gives a 'before and after' position in the two tabs by way of example.
Grateful for any advice.
Bookmarks