Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Scripting MS Excel with Applescript

Scripting MS Excel with Applescript
Thread Tools
Forum Regular
Join Date: Apr 2000
Location: Swampscott, MA
Status: Offline
Reply With Quote
Apr 18, 2001, 07:08 PM
 
Here is the deal:
We have a script that runs in VBA under Excel right now. It takes an Excel spreadsheet and saves it as a tab-delimited text file. Great. It works. However, ever since the Excel Y2K update came out, any time you save a document using VBA it gives you 4 digits years. I can do a 'Save As...' command in the Application and get the two digit year, but not with VBA.

Since all this script does is open the file save it in a different format and then save it somewhere else, I figured I could do it with AppleScript.

Here is what I have so far:


Code:
tell Application "Microsoft Excel" Activate Open "Macintosh HD esktop Folder:Project:Input:File A" --Missing Stuff -- I want to save it to a different location as a tab delim text file but cannot figure out for the life of me the correct syntax end tell
Any help would be greatly appreciated.


--mike

[This message has been edited by mjpaci (edited 04-18-2001).]

[This message has been edited by mjpaci (edited 04-19-2001).]
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2