Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Applescript Problem

Hi All

Well this is not directly relevant but I thought someone might have an idea

I am trying to create an applescript to control excel and run excel macros
on my OSX mac.

I have my macro in excel and it works, but I want to open text files that
are not from a mac or excel formatted, so in the applescript I have tried

OpenText theFile SpaceDelimiter space

And

OpenText theFile Origin xlMSDOS StartAtRow 1 DataType xlDelimited
SpaceDelimiter tab with TreatConsecutiveDelimitersAsOne

And variations on the theme, I am defining the file to open as theFile
Any ideas why this does not work


thanks
Alex



tell application "Microsoft Excel"
OpenText theFile SpaceDelimiter space
Evaluate "'Personal Macro Workbook'!Script1()"
end tell

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Colon at the end of excel file name(ex: problem.xls:1, problem.xls financeguy New Users to Excel 2 January 15th 10 01:15 AM
Applescript: get range of selection Richard8A Excel Discussion (Misc queries) 0 September 26th 08 01:59 AM
How to record Excel with AppleScript? Recordable or not? ChipMck Excel Discussion (Misc queries) 0 June 27th 08 01:39 AM
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
problem with a conditional max problem Brian Cornejo Excel Discussion (Misc queries) 1 February 18th 05 06:25 PM


All times are GMT +1. The time now is 07:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"