+ Reply to Thread
Results 1 to 3 of 3

Help with clearing contents macro

  1. #1
    Registered User
    Join Date
    08-24-2009
    Location
    Winnipeg, MB
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help with clearing contents macro

    Hi,

    I was hoping someone might be able to help me with a simple macro to clear cell contents of a range of cells based on a condition. I have never used VBA before.

    I have an excel worksheet with 7138 rows and need a macro that will start at the top, look a column P, if P=1, then delete contents in columns Q to AB for that row. Then move down the worksheet line by line doing the same until it reaches line 7139.

    Any help would be greatly appreciated!
    Thanks
    Chad

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Help with clearing contents macro

    Welcome to the forum.

    Try this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-24-2009
    Location
    Winnipeg, MB
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help with clearing contents macro

    WOW!! I spent hours this morning trying to figure that out.

    Thank you very much!!
    Chad

+ 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