+ Reply to Thread
Results 1 to 2 of 2

Using SpecialCells(xlLastCell) in a Range

  1. #1
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Using SpecialCells(xlLastCell) in a Range

    Please Login or Register  to view this content.
    TORCH Report is going to be bigger each time I use it so I need a way to run the sort and capture the new size each time. I keep getting Method 'Range' of object '_Global' failed for the following code:

    Please Login or Register  to view this content.
    In the Locals window ReportLastCell shows the correct column and row. I've also tried:

    Please Login or Register  to view this content.
    which gives the same error.

    How can I make this work?
    Last edited by bishoposiris; 02-21-2014 at 11:57 AM. Reason: Solved

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Using SpecialCells(xlLastCell) in a Range

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Using SpecialCells(xlLastCell) in a Range

    Also you do not specify worksheet for range:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ActiveCell.SpecialCells(xlLastCell).Select
    By SriramDorai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-04-2013, 12:44 PM
  2. .SpecialCells(xlLastCell).Select does not work in vbscript
    By ckb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2007, 12:58 PM
  3. [SOLVED] specialcells(xlLastCell) and method global range error
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2006, 04:55 PM
  4. .Cells.SpecialCells(xlLastCell)
    By Simon Shaw in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-05-2005, 07:06 PM
  5. [SOLVED] SpecialCells(xlLastCell)
    By José Ignacio Bella in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-09-2005, 04:06 PM

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