+ Reply to Thread
Results 1 to 4 of 4

cell data move to left

  1. #1
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314

    cell data move to left

    Dear all
    How do i move red higlighted datas to the cells that arrow pointing until "Totals for case type"

    I have the below formula that only moves one cell to left

    For i = 1 To 65000
    If Cells(i, 1) = "Case Type" Then
    Cells(i, 1).Offset(1, 0).Value = Cells(i, 1).Offset(0, 1).Value
    Cells(i, 1).Offset(0, 1).ClearContents
    End If
    Next
    End Sub

    can you please help?
    thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by lapot
    Dear all
    How do i move red higlighted datas to the cells that arrow pointing until "Totals for case type"

    I have the below formula that only moves one cell to left

    For i = 1 To 65000
    If Cells(i, 1) = "Case Type" Then
    Cells(i, 1).Offset(1, 0).Value = Cells(i, 1).Offset(0, 1).Value
    Cells(i, 1).Offset(0, 1).ClearContents
    End If
    Next
    End Sub

    can you please help?
    thanks
    hi

    try
    Please Login or Register  to view this content.
    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Contributor
    Join Date
    08-29-2006
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    314
    thanks for your reply but it didnt work. this is doing my head in

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by lapot
    thanks for your reply but it didnt work. this is doing my head in
    Hi,

    'it didn't work' is not much of a technical description to help you solve your problem.

    the code
    Please Login or Register  to view this content.
    certainly moves the data as displayed in your .doc.

    what happened for you?
    ---

+ 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