+ Reply to Thread
Results 1 to 2 of 2

Finding the the last cell address for writing macro

  1. #1
    Registered User
    Join Date
    08-14-2007
    Posts
    5

    Unhappy Finding the the last cell address for writing macro

    Friends,
    I want to sort a set of data in a macro. For this I need the address of last cell in a data base to be found out automatically. For example if the whole data is in the range of A1:F45, the address of F45 should come automatically or the address of last cell (F45) has to be found out automatically for carrying out sorting further. Is there any programme to find this automatically?

    Regards

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by rms10
    Friends,
    I want to sort a set of data in a macro. For this I need the address of last cell in a data base to be found out automatically. For example if the whole data is in the range of A1:F45, the address of F45 should come automatically or the address of last cell (F45) has to be found out automatically for carrying out sorting further. Is there any programme to find this automatically?

    Regards
    Hi,

    perhaps not the best way, but my preference is to Dim iLastRow as long, and then
    Please Login or Register  to view this content.
    which sets the variable according to column A last entry for use in the command.

    hth
    ---
    Si fractum non sit, noli id reficere.

+ 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