+ Reply to Thread
Results 1 to 3 of 3

Writing Macros

  1. #1
    sportsbarn
    Guest

    Writing Macros

    I am having troubles deleting below a certain point when writing macros using
    seperate worksheets with varying data amounts.

    Is there a way to identify a non-specific point? Instead of a cell specific
    point when writing the code, ie (A203:A205)?

  2. #2
    CLR
    Guest

    RE: Writing Macros

    Maybe this line in your code will help......

    Range("A203:A205").ClearContents

    Vaya con Dios,
    Chuck, CABGx3



    "sportsbarn" wrote:

    > I am having troubles deleting below a certain point when writing macros using
    > seperate worksheets with varying data amounts.
    >
    > Is there a way to identify a non-specific point? Instead of a cell specific
    > point when writing the code, ie (A203:A205)?


  3. #3
    Scoops
    Guest

    Re: Writing Macros

    Hi sportsbarn

    Not entirely sure what you're after but:

    LastRow = Range("A65536").End(xlup).Row

    will give you the last used row in column A.

    Always delete from bottom to top.

    Regards

    Steve


+ 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