+ Reply to Thread
Results 1 to 2 of 2

Selecting all cells. Cells.Select is not working

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-15-2009
    Location
    Herndon, VA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Selecting all cells. Cells.Select is not working

    The 2nd worksheet is currently the active one. Why aren't these working?

    Cells.Select
    Worksheets(3).Cells.Select

    The first line of code should select all cells on the 2nd worksheet. The next line of code should select all cells on the 3rd worksheet.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Selecting all cells. Cells.Select is not working

    There are millions of cells on a page. How about usedrange.select

    e/ On a side note you can't select if its not the active sheet.
    Last edited by Solus Rankin; 08-19-2013 at 04:07 PM.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. [SOLVED] Using code to select cells that are two cells to the left of the currently active cell
    By LaffyAffy13 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-25-2013, 01:56 PM
  2. Replies: 4
    Last Post: 01-31-2012, 01:08 PM
  3. macro to select cells based on status of cells to left
    By dcbiker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2011, 05:15 PM
  4. this formula for selecting cells isnt working
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2008, 03:29 AM
  5. Replies: 1
    Last Post: 02-11-2006, 01:00 PM

Tags for this Thread

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