+ Reply to Thread
Results 1 to 3 of 3

looping a formula

  1. #1
    Registered User
    Join Date
    10-28-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    looping a formula

    Hi,

    In my data i need to delete all entries by users from NZ. i need the macro to check if the first two letters of the username eqaul "NZ" and if so then delete entire row.

    This is what i have got but it keeps giving me an error 424 'object required'.

    For n = endrow To 1 Step -1
    If Left(Cells(n, 23), 2).Value = "NZ" Then Cells(n, 23).EntireRow.delete
    Next n

    Any help would be appreciated!

    Thanks in advance

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: looping a formula

    Try this.
    Please Login or Register  to view this content.
    PS Can you use code tags when posting code?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-28-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: looping a formula

    Thanks Norie, that did the job.

    Sorry about that, will do in the future

    Cheers again

+ 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. Looping Formula Help
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 05:56 AM
  2. [SOLVED] Looping an index transposing formula
    By poetgirl916 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-22-2013, 01:52 PM
  3. Looping through cells setting a formula
    By JonPugh in forum Excel General
    Replies: 1
    Last Post: 01-08-2010, 12:04 PM
  4. Looping of repeatitive formula
    By Chetan Chauhan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2009, 03:03 AM
  5. creating a looping formula between different spreadsheets
    By Jon Buonocore in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-27-2006, 11:35 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