+ Reply to Thread
Results 1 to 3 of 3

find text, offset to the left 2 places resize and delete.

  1. #1
    Registered User
    Join Date
    03-20-2017
    Location
    Lancashire, England
    MS-Off Ver
    2010
    Posts
    40

    find text, offset to the left 2 places resize and delete.

    Hi folks,

    I have the following code that loops through a worksheet looking for cells that contain "ab" it then deletes the cell containing "ab" and also the cell immediately to the left, the rows below then move up 1 place.


    Please Login or Register  to view this content.

    What I am trying to achieve is when cells containing "ab" are found the cell containing "ab" and also 2 cells immediately to the left are deleted, the rows below then move up 1 place.

    Also instead of searching worksheet Bob I would like it to search the open sheet.

    Thanks for any help

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: find text, offset to the left 2 places resize and delete.

    Hi Andy,

    Try this.

    Please Login or Register  to view this content.
    Last edited by quekbc; 04-13-2017 at 09:25 PM.

  3. #3
    Registered User
    Join Date
    03-20-2017
    Location
    Lancashire, England
    MS-Off Ver
    2010
    Posts
    40

    Re: find text, offset to the left 2 places resize and delete.

    Hi Quekbc,

    Works like a charm, just what I was trying to do.

    Many thanks for your help and time

+ 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. Protected worksheet with macro but can't delete text or resize rows
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2016, 12:58 PM
  2. [SOLVED] Understanding range objects used with .delete/.resize/.offset methods
    By joe31623 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-21-2016, 01:05 PM
  3. Find cell with text, offset to the left one cell and write code
    By timas in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-23-2015, 01:22 AM
  4. Find Values, Delete and Move Left
    By rkeane7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2008, 09:34 AM
  5. [SOLVED] Find & Delete columns to the left stopping at column B
    By Aria in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-19-2006, 08:55 PM
  6. Find & Delete columns to the left stopping at column B
    By Aria in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2006, 01:55 PM
  7. delete all text to the left of???
    By Sheila in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2005, 02:06 PM

Tags for this Thread

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