+ Reply to Thread
Results 1 to 6 of 6

clear Items Col F based on Code Col B

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,735

    clear Items Col F based on Code Col B

    I have Suppliers codes in Col F. I need to clear the supplier codes in Col F where the Code on Col B is NOT KR-2200


    I have written code to do this, but get an error message "method 'range' of object_Global failed

    It would be appreciated if someone could amend my code



    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: clear Items Col F based on Code Col B

    Hello Howard,

    Try changing this line:-

    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    I hope that this helps.

    Cheerio,
    vcoolio.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,552

    Re: clear Items Col F based on Code Col B

    should be
    Please Login or Register  to view this content.
    If bulky data, autofilter would be better.

  4. #4
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: clear Items Col F based on Code Col B

    Hello again Howard,

    If bulky data, autofilter would be better.
    Ditto what Jindon said so something like the following would be better for a large data set:-

    Please Login or Register  to view this content.
    Cheerio,
    vcoolio

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,735

    Re: clear Items Col F based on Code Col B

    Hi Guys


    Thanks for the help, much appreciated

  6. #6
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: clear Items Col F based on Code Col B

    You're welcome Howard.

    Glad that we could help.

    Cheerio,
    vcoolio.

+ 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. [SOLVED] VBA code to clear selected items in listbox
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-18-2016, 04:00 PM
  2. Code to clear contents of a cell based on specific criteria
    By srsev in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-21-2013, 01:38 PM
  3. Replies: 1
    Last Post: 06-21-2013, 04:05 AM
  4. Code to clear contents of specific cells based upon if key exists in other sheets
    By seputus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2013, 07:25 PM
  5. [SOLVED] VBA Code: Clear cell based on Formatting style (currency)
    By kevinsaputro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2012, 06:32 PM
  6. [SOLVED] Execute Code based on a set of items contained in an array
    By Henk Stander in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2012, 03:25 PM
  7. [SOLVED] How to clear items on a form?
    By Grd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2005, 05:05 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