+ Reply to Thread
Results 1 to 6 of 6

Please help with error, hiding rows

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Please help with error, hiding rows

    Hi all,
    I have the following code to hide rows. Why am I getting an error when I try to declare what rows to select? Syntax? Thanks for the help.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Please help with error, hiding rows

    What is the error - is it highlighting the line in red? It works ok for me if I put spaces between the MaxArray, &, and ":58" parts, i.e.
    Please Login or Register  to view this content.
    IF that isn't it - what is in D49?

  3. #3
    Registered User
    Join Date
    11-25-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Please help with error, hiding rows

    Hi Rag,
    Highlights in yellow and gives "select method of Range class failed". Thoughts?

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Please help with error, hiding rows

    Are the rows visible that you are trying to select? Perhaps try getting rid of the select part, for example:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-25-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Please help with error, hiding rows

    Thanks rag, that did it. I still don't understand why the .select wasn't working but oh, well. Thanks again.

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Please help with error, hiding rows

    Either the rows were hidden or another sheet was active, I'd expect.

+ 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. VBA hiding rows target.value referring to range in another worksheet error
    By siddas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2013, 08:55 AM
  2. Error hiding rows when printing
    By Jakes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2012, 02:18 PM
  3. Error 424 when hiding rows
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-02-2010, 11:31 AM
  4. Hiding a button when hiding rows
    By fergusor in forum Excel General
    Replies: 2
    Last Post: 08-10-2006, 09:31 AM
  5. Replies: 2
    Last Post: 10-18-2005, 10:05 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