• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Excel: hide multiple columns with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Excel: hide multiple columns with Applescript


  • Subject: Re: Excel: hide multiple columns with Applescript
  • From: David Wignall <email@hidden>
  • Date: Sun, 20 Mar 2011 11:44:02 +1300

On 20 Mar 2011, at 7:04 AM, Cameron Knowlton wrote:

> I've been working more on my Excel scripting, and hope someone here can help with an efficiency.
>
> Currently, I use a loop to hide excessive pivot table columns:

This specifically hides all columns of a pivot table:

    set Pivot_Table to pivot table (1) of active sheet
    set Pivot_Columns to column range of Pivot_Table
    set Entire_Columns to entire column of Pivot_Columns
    set hidden of Entire_Columns to true

More generally this will hide columns on any sheet:

    set hidden entire column of range ("$B:$J") to true

--
Dave


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Excel: hide multiple columns with Applescript
      • From: Cameron Knowlton <email@hidden>
References: 
 >Re: Office 2011 and Applescript (From: Stan Cleveland <email@hidden>)
 >Re: Office 2011 and Applescript (From: Barry Wainwright <email@hidden>)
 >Re: Office 2011 and Applescript (From: Christian Prinoth <email@hidden>)
 >Re: Office 2011 and Applescript (From: Christian Prinoth <email@hidden>)
 >Excel: hide multiple columns with Applescript (From: Cameron Knowlton <email@hidden>)

  • Prev by Date: Excel: hide multiple columns with Applescript
  • Next by Date: copy url rom safari to firefox issue
  • Previous by thread: Excel: hide multiple columns with Applescript
  • Next by thread: Re: Excel: hide multiple columns with Applescript
  • Index(es):
    • Date
    • Thread