Consulting

Results 1 to 5 of 5

Thread: Solved: Find N, Insert N and Shift down

  1. #1
    VBAX Contributor
    Joined
    May 2008
    Posts
    109
    Location

    Solved: Find N, Insert N and Shift down

    Can anyone help me with the following?

    (Please see the attached file ...)

    I want to move the text in red Sunday shifts) from columns D and E and insert this in columns G and H as in my example

    Any help you can provide is really appreciated.

    Thanks.

    Sasa
    Attached Files Attached Files

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    perhaps:[VBA]Sub blah()
    For Each cll In Columns("B:B").SpecialCells(xlCellTypeConstants, 2).Cells
    cll.Offset(, 2).Resize(, 2).Cut cll.Offset(, 5)
    Next cll
    [/VBA]
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Contributor
    Joined
    May 2008
    Posts
    109
    Location
    Thank you, but maybe there is a misunderstanding. In my example the start point is on the left and the result I hope to get is on the right. In other words I need a macro that find (N), in my example (N) are the strings on sundays (MED7- MED2-MED4- GER1) and insert them in the column S and T just as in my example on the right.

    Thanks in advance

  4. #4
    VBAX Tutor mohanvijay's Avatar
    Joined
    Aug 2010
    Location
    MADURAI
    Posts
    268
    Location
    Try the button in "Foglio2" sheet
    Attached Files Attached Files

  5. #5
    VBAX Contributor
    Joined
    May 2008
    Posts
    109
    Location
    Thank you mohanvijay
    It works like a charme !

    Thank you again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •