Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() but here , lines of code below, I still have a trouble , and in this macro is my last task ,,Columns.Count " starts to count from last column . I have 5 more columns after Column(BA) , ( it means Column(BA) ,, to the right " ) ; I use olso and the ,,myCell.Offset(0, -4)" Column with data , that means Column(AW) , and the ,,Cut" value must go to range IN THE LEFT of Column (AW) , when it found data . This last part , ,,Offset(0, 1)" work very well , but the ,,Count" must begin not from last column from sheet but as i just have described . Well, I just have a work arround with your code , and this lines do my task correctly : Else: myCell.Offset(0, -4).Cut _ Destination:=.Cells(myCell.Row, myCell.Offset(0,4)).End(xlToLeft).End(xlToRight).O ffset(0, 1) Maybe exist a little more elegant solution , or code line writeing , but it is already ok . I thank you so much for your really great help , and helpfull assistence . I wish you a great week . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Range("Reset Sheet!F13").Select Makes VBA Code Fail | Excel Programming | |||
VB Script: Code for "Sheets in selection" | Excel Discussion (Misc queries) | |||
macro stops on "selection.autofilter" line of code | Excel Programming | |||
Fix Code: Select Case and "Contains" selection | Excel Programming | |||
Using "Cells" to write "Range("A:A,H:H").Select" | Excel Programming |