+ Reply to Thread
Results 1 to 2 of 2

Activecell offset with Variable

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    California
    MS-Off Ver
    Excel 2000
    Posts
    20

    Activecell offset with Variable

    I am trying to find the number of columns and rows containing info in a sheet that will potentially change every update.

    I have it figured out except the activecell.offset.activate seems to work except it won't allow me to use a variable.

    The code I am using is this

    Please Login or Register  to view this content.
    It is probably an easy answer but I am stuck.

    Thanks in advance.

    sgreni

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Activecell offset with Variable

    there are a couple of ways to do that. Everything depends on data table.

    For example, if you know the most left upper cell address and it's constant:

    Please Login or Register  to view this content.
    will provide you range address of data table without empty rows. Here this is cell I1

    If you need just to count number columns and rows:

    Please Login or Register  to view this content.
    Last edited by watersev; 02-04-2011 at 05:45 PM.

+ 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