+ Reply to Thread
Results 1 to 4 of 4

Select Last Cell - Blanks in between

  1. #1
    Registered User
    Join Date
    07-27-2006
    Posts
    19

    Select Last Cell - Blanks in between

    Hi,

    I am trying to write a macro that will help me select all the cells, till the last cell containing a value, including the blanks in between. how can i do this please help.

    I am trying the following code:

    Please Login or Register  to view this content.
    Any Advice
    Last edited by mudraker; 04-30-2007 at 08:03 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,443
    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    01-19-2007
    Location
    Bangalore, India
    Posts
    66
    You can select your all data like this..

    ThisWorkbook.Worksheets("EOM Drag").UsedRange.Select

    Regards,
    Gajendra Gupta

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Here is a few different ways to select last row & columns

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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