• 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: Removing a row or column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing a row or column


  • Subject: Re: Removing a row or column
  • From: Stan Cleveland <email@hidden>
  • Date: Tue, 26 Mar 2013 16:27:02 -0700

On Mar 26, 2013, at 4:10 PM, Robert Cuilla wrote:

> Help to everyone,
>
> I would like to take an Excel file and select a complete column or row, such as "B"  or "13"  and delete using AS.  Can anyone give me a little guidance to get started.

Hi Bob,

Try this:

	tell application "Microsoft Excel"
		delete selection
	end tell

Or you can delete a specific range (in the currently active worksheet) without a selection like this:

	tell application "Microsoft Excel"
		delete (range "C:C")
		delete (range "12:12")
	end tell

HTH,
Stan C.


 _______________________________________________
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

References: 
 >Removing a row or column (From: Robert Cuilla <email@hidden>)

  • Prev by Date: Removing a row or column
  • Next by Date: Re: Won't run
  • Previous by thread: Removing a row or column
  • Next by thread: Remove a font library in Font Book
  • Index(es):
    • Date
    • Thread