+ Reply to Thread
Results 1 to 3 of 3

how can copy the cell value to the respective cell?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    134

    how can copy the cell value to the respective cell?

    Hi Guys,
    Just wondering if someone could help me ...
    i have the data which need some re arranging as u can see in attached sample wb
    can some one help. its appreciated.
    u can find the data in Sep-10 sheet and i need to arrange as in the after sheet.
    and delete those empty row
    Attached Files Attached Files
    Last edited by jay11; 11-20-2010 at 10:32 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: how can copy the cell value to the respective cell?

    This should work for you
    Sub Button3_Click()
    
        Dim Rws As Long, Rng As Range, c As Range, D As Range, ClRw As Range
    
        Rws = Cells(Rows.Count, "A").End(xlUp).Row
    
        Set Rng = Range(Cells(3, 1), Cells(Rws, 1))
    
        For Each c In Rng.Cells
    
            If IsDate(c.Value) Then
    
                Set D = c.Offset(2, 7)
    
                Range(D, D.End(xlDown)) = c
    
            End If
    
        Next c
    
        Set ClRw = Range(Cells(3, 5), Cells(Rws, 5)).SpecialCells(xlCellTypeBlanks)
    
        ClRw.EntireRow.Delete
    
    End Sub

  3. #3
    Forum Contributor
    Join Date
    02-12-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: how can copy the cell value to the respective cell?

    hi Dave
    thanks you
    it work great

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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