+ Reply to Thread
Results 1 to 2 of 2

Delete with shift causes cells loose fill & border around

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    Delete with shift causes cells loose fill & border around

    I am using the following VBA to remove some unwanted data out of data that I want to keep continuous in cells that have a tan fill & borders around each cell.

    The problem is when the data shifts up into the area I have a tan fill color & borders around each cell, they bring the non-filled & non-border cells with them.

            rngCell.Offset(-4, 0).Resize(10, 10).Delete shift:=xlUp
    Any ideas how to easily retain the tan & borders around the cells would be greatly appreciated. Thanks so very much. mikeburg

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    You can try to use this macro:
       Range(rngCell.Row - 4 & ":" & rngCell.Row + 5).Delete
    Regards,
    Antonio

+ 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