FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Microsoft Excel 2008 and Applescript

 
   Mac (Home) -> Apple Scripts RSS
Related Topics:
Excel VBA to Applescript Example RangeCell Example - Sub Dim b as Workbook Dim s as Worksheet Dim r as Range Array v = set b = set s = set r = r.Value = v End Sub -- There is no..

update applescript - I am only now practiced enough in that some anomalies in the language are bugging me. In looking for one of the first documents I read was the Apple web page listing all the bugs in version 1.9.1. I have version 1.9.1 on osx..

Please help with this applescript code - The line below is part of an macro that works fine for documents to RTF format. Can anyone please tell me how I amend this line of code to save documents in ASC (Ascii) text format. (ASC is one of the 'Save As'..

Help with a BBEdit AppleScript - I need to insert Quark tags into a text file that is exported from a ads I just can't seem to get the syntax right to have a font tag inserted at the beginning of the line before the date tag. For

New AppleScript features in 10.5 - On this page (which is formatted in a very un-Apple manner) there's a list of the new features in with each on a clickable link. Some look and I don't want to torpedo any fun so I..
Next:  Apple Scripts: create account in mail.app using applescript  
Author Message
UnisonMac

External


Since: Feb 25, 2008
Posts: 1



(Msg. 1) Posted: Mon Feb 25, 2008 11:01 am
Post subject: Microsoft Excel 2008 and Applescript
Archived from groups: alt>comp>lang>applescript (more info?)

Hi,

I have a sheet that contains data from column A to column N. Column O
makes a sum of datas from column A to column N.

When I add datas for some rows, I want my script to copy the sum in
previous row to next row.

The following script does the job fine but for only one row. I have to
execute the script many times for many rows.

tell application "Microsoft Excel"
activate workbook
set lastRowCellN to (get end range ("N" & (count rows)) direction
toward the top)
set lastRowNumN to (first row index of lastRowCellN)
set lastRowCellNN to range ("N" & lastRowNumN)
set lastRowCellO to (get end range ("O" & (count rows)) direction
toward the top)
set lastRowNumO to (first row index of lastRowCellO)
set lastRowCellOO to range ("O" & lastRowNumN)
select range ("O" & lastRowNumO)
copy range range ("O" & lastRowNumO)
paste worksheet active sheet destination range ("O" & lastRowNumO + 1)
select range ("O" & lastRowNumO + 1)
clear outline range ("O" & lastRowNumO)
end tell

Can you help me, please, to make this script working for many rows at
the same time?
Please excuse for my English. I hope my message is clear.
Thanks for your help.

Bernard
Back to top
Login to vote
Display posts from previous:   
       Mac (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact