September 09, 2010, 05:27:37 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Excel copy and paste  (Read 73 times)
0 Members and 1 Guest are viewing this topic.
cdms
Jr. Member
**

Karma: 6
Offline Offline

Gender: Male
Posts: 84


« on: February 08, 2010, 09:08:18 AM »

Quote
Has anyone done much with Excel 2008. I am trying to copy a row from one sheet into another. I have found the required row and copied it to the pasteboard.

Code:
1 tell sheet "Sheet name" of workbook 1
2  select
3 end tell
4 set theRow to first row index of (find range "A1:J2000" what theAccountNo)
5 tell row theRow of sheet "Sheet name" of workbook 1
6  select
7 end tell
8 copy range selection
   
I want to paste this into the first row of a new empty sheet but cannot get the paste command to work.

Code:
1 paste range "A1" of sheet "Sheet1"

Any help appreciated.







Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!