+ Reply to Thread
Results 1 to 2 of 2

Assign 'Selection.ShowDetail = True' sheet to a variable?

  1. #1
    Registered User
    Join Date
    09-18-2003
    Location
    London
    Posts
    15

    Assign 'Selection.ShowDetail = True' sheet to a variable?

    Hi,

    I'm using Exel 2000

    I need to assign the opened sheet of the .showdetail method of a pivot table to a variable. Currently, I follow the 'selection.showdetail = true' statement with 'Set [variable name] = Activesheet.

    However, this is falling over as the detail sheet is taking longer to open than the code takes to execute, so the 'Activesheet' ends up being the pivot table sheet and not the new, detail sheet?

    I'm sure this is very straightforward for those of you with more than my limited VBA experience but I'd be very grateful if anybody could advise how I can pre-assign my 'showdetail' sheet to a variable?

    Thanks,

    Adrian
    Last edited by Kobayashi; 05-10-2005 at 09:40 AM.

  2. #2
    Registered User
    Join Date
    09-18-2003
    Location
    London
    Posts
    15
    Help! Getting desperate here!

+ 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