+ Reply to Thread
Results 1 to 3 of 3

Unable to set the ShowDetail property of the Range Class

  1. #1
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Question Unable to set the ShowDetail property of the Range Class

    Hi,

    When backtesting this code it worked fine. Now I am tying to test it & it isnt working.
    Please Login or Register  to view this content.
    When I hit the error & go to debug. I made the application.visable=true & it worked.
    Does anyone know why it works that way & more importantly what I can do to fix it?
    Last edited by dlow; 12-21-2015 at 04:42 AM.

  2. #2
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Whats wrong with my .ShowDetail Statement?

    Doesnt seem to work: With wS either.
    Neither does:
    wS.Rows(18).EntireRow.ShowDetail = False

    Guess I could try closing & re opening Excel
    Last edited by dlow; 12-21-2015 at 03:18 AM.

  3. #3
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Unable to set the ShowDetail property of the Range Class

    Okay, so it works flawlessly the 1st time through.
    Its throwing the error if I have the code do the same thing,
    but this time it should be UnGrouping Rows & then unhiding them.
    Then applying the new Groups & hiding the detail.

    I got past that error by replacing: .ShowDetail = False with .Hidden = True
    It ran so slow with everything off .Visible & ect....
    Then switched everything back to how I wanted it with the .ShowDetail = False

    Weird it ran super slow again, but finish with .ShowDetail = False.

    Closed my workbooks & Excel then Reopened then did a little Compile magic, ran the code again knowing its not going to error the 1st time only the 2nd.

    Ran it again & lo & behold no problem, & it did it as fast as it should have. Rinse & repeat a few more times & no more problems.

    It wasnt closing & re-opening everything because I had already done that & it was still failing.
    I dont think it was Compile that saved my bacon either. [Im 80% sure I did that already when I closed & re opened]
    Oddly I think it was .Hidden = True that fixed whatever was wrong with my sheet/sheets.

    I have no idea but it is working now, just sharing my weird experience.
    Last edited by dlow; 12-21-2015 at 05:52 AM.

+ 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] Whats wrong with this loop
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-24-2014, 07:05 AM
  2. [SOLVED] Whats wrong with this .range statement???
    By klunker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2014, 03:15 PM
  3. Whats wrong with this formula?
    By Shane Moore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2006, 02:57 AM
  4. whats wrong with if??
    By duncan79 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2006, 05:20 PM
  5. [SOLVED] Whats wrong with this?
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2006, 12:00 PM
  6. Whats wrong with this?
    By LucasBuck in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 04:15 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