+ Reply to Thread
Results 1 to 10 of 10

Move from one row to specified row and column

Hybrid View

  1. #1
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Move from one row to specified row and column

    I did not say or indicated the code works. It will never work, copying entire row in to different column other than the first column is impossible in excel.
    There are also other reasons for the code not to work. For e.g. like with *.

    Try

    Sub test()
    
    Dim Lr As Long, i As Long
    Application.ScreenUpdating = 0
        With ActiveSheet
            Lr = .Range("A" & .Rows.Count).End(xlUp).Row
            For i = 6 To Lr
                 If LCase(.Cells(i, 1)) Like "of" Then
                   .Rows(i).Copy
                   .Cells(i, 1).Offset(-5, 0).PasteSpecial xlValues
                   .Rows(i).Clear
                 End If
            Next i
         End With
     Application.ScreenUpdating = 0
    End Sub

  2. #2
    Registered User
    Join Date
    11-05-2012
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Move from one row to specified row and column

    I tried
    Nothing
    Still same error at LCase
    And I tell you; this code worked perfectly till I reinstalled office

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 09-23-2013, 06:19 PM
  2. [SOLVED] Seperate data in column A that has specific word and move to column B or C or D
    By jachbo in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-05-2013, 09:08 PM
  3. [SOLVED] Why does the formula move when I move the column
    By ag6 in forum Excel General
    Replies: 5
    Last Post: 04-21-2012, 04:56 PM
  4. Copy/move a word from a cell in a column to another column and autofill
    By excelaspire0219 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2009, 03:54 PM
  5. Replies: 2
    Last Post: 12-27-2005, 06:30 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1