Applescript with Excel 2011

Hi guys.
In Excel 2011 there is no button for changing Numbers or text to be raised, or indexed. You have to work yourself through the menu to do this.
So I wrote an Applescript which works great if I launch it from the AppleScript-Editor window, but as soon as I save it in the Excel Script Folder, I get lots of Errors: mainly that the menu bar couldn't be found.
The Script:
tell application "Microsoft Excel" to activate
tell application "System Events"
          tell process "Microsoft Excel"
                    click menu item "Zellen..." of menu "Format" of menu bar 1               --Zellen = cells
                    tell window "Zellen formatieren"
                              get UI elements
                              tell tab group 1
                                        tell group 1    
                                                  tell group "Effekte"                                                                                --Effekte = effects
                                                            tell checkbox "Hochgestellt" to click                                                     --hochgestellt = raised
                                                  end tell
                                        end tell
                              end tell
                              tell button "OK" to click
                    end tell
          end tell
end tell
Any ideas?
Thanks

Problem Solved:
I found a post on a microsoft forum about Excel.  The Edit:Clear:ALL command does not change the previously used cells to unused, therefore the "Used Range" still includes the blank cells.  You have to select the rows and Delete them, to get the "Used Range" reset.

Similar Messages

  • Does Lion interfere with Excel 2011 language support for Korean, Chinese?

    I was able to use Excel 2011 for several languages including Korean and Chinese when I was on Snow Leopard.
    Now, after upgrading to Lion, I can't figure out how to get that functionality.
    I have used the Microsoft Language Register to get the Japanese character set to appear correctly.  What do I need to do to get the other character sets to appear?

    I'm copying data out of a multi language database and pasting into excel.  On Snow Leopard I was able to paste Korean and Chinese characters into excel.  Now, I get a box with a small in the place of Chinese/Korean characters.
    I'm sure this is a matter of just not having a setting set properly, but I can't find it and I can't find anything online about it.

  • Another Applescript with Excel Question

    Hey Everyone,
    I am making an attempt to write a script for excel. I need the script to do these things:
    Open an excel workbook file from a dialog
    Give me an option to enter a name to search for within that document
    search column D of that document for the name entered
    each time it finds the name in that column, copy that whole row
    copy all of the rows it finds to a new excel workbook
    I have figured out the really basic things(open the file, display the dialog to enter the name in, etc.) I just am not sure how to tell it to search only column D and how to copy the  whole row of each entry it finds.
    Any help offered, I will appreciate!

    MacTech magazine has a tutorial for using Applescript with Office 2008.
    Here is the best I can come up for it. The links to MacTech no longer work. I'm not sure if you can find a way to get to it any more:
    http://gigaom.com/apple/mactech-offers-free-scripting-book-for-office-2008/
    And yes, they are much like macros, without the possibility of malware being embedded.

  • How to run Excel 2011 from applescript for batch

    Every night at 2:00am, I want to convert an Excel spreadsheet to CSV.  I'm doing this on a Mac, with Excel 2011.  The following Applescript works sometimes:
    tell application "Microsoft Excel"
              open "/Users/siemsen/PetesLookup/BPO.inventory.current.xls"
              save active workbook in "BPO.inventory.current.csv" as CSV file format
      close workbook 1 saving no
      quit
    end tell
    With the above script saved in a file named convert.scpt, I can execute it from a bash script using the command "osascript convert.scpt".  The bash script runs in a launchd job at 2:00am every day.
    It works if Excel is already running on the Mac at the time the cron job runs.  If not, it starts Excel, which insists on displaynig a "Excel Workbook Gallery" dialog box.  No one is present on the Mac at the time, so no one clicks on the "Cancel" in the dialog box, so the Applescript times out and the cron job fails.
    How do I get around this?  Can I somehow start Excel without the **** "Excel Workbook Gallery" dialog?  Is there some other trick that will allow the job to run unattended?

    In Excel preferences (general tab) uncheck the checkbox that says "Open Project Gallery when application opens".  that should remove the startup dialog.

  • Excel 2011 can I run pivot in classic pivot layout

    Hi All,
    Is it possible to run Excel 2011 pivot in classic layout. I am having a tough time with excel 2011 pivot format.
    Thanks,
    Sapna

    Tom, that brings me to accurate % change, thank you.
    offense         2011    2012    Difference    Correct % Change    Other Proposed Change
    ARSON           44         35          -9            -20.45454500  
              0.0
    ASSAULT       2179    2286       107             4.91050900               0.0
    Still working to format the % to 20 but wanted to give you feedback.

  • 'Margins Do Not Match Page Size' Excel 2011 problem - nothing working now. Mac 10.9.2

    Hey folks. PLEASE help. I'm running Mac 10.9.2 with Excel 2011 on a macbook pro. All of a sudden i'm getting an error 'Margins Do Not Match Page Size' on Excel as soon as i start doing anything e.g. adjust page size, try to print. Help?
    Ive seen previous questions on this but nothing recent and none of the solutions seem to fit.
    Any ideas?
    Tahnks

    Kernel Panics today:
    Kernel Extensions in backtrace:
             com.apple.filesystems.smbfs(2.0.2)[E043DE0F-9336-3C61-9C82-F029B430A3EB]@0xffff ff7fabb77000->0xffffff7fabbc2fff
                dependency: com.apple.kec.corecrypto(1.0)[DB137B94-65D2-32AF-B5BC-80A360E104C3]@0xffffff7fa bb2b000
                dependency: com.apple.kext.triggers(1.0)[A7018A2E-1C0C-37B8-9382-67786A396EAF]@0xffffff7fab b72000
    Kernel Extensions in backtrace:
             com.apple.filesystems.smbfs(2.0.2)[E043DE0F-9336-3C61-9C82-F029B430A3EB]@0xffff ff7f85e2c000->0xffffff7f85e77fff
                dependency: com.apple.kec.corecrypto(1.0)[DB137B94-65D2-32AF-B5BC-80A360E104C3]@0xffffff7f8 3f2b000
                dependency: com.apple.kext.triggers(1.0)[A7018A2E-1C0C-37B8-9382-67786A396EAF]@0xffffff7f83 f72000
    BSD process name corresponding to current thread: Finder
    Mac OS version:
    13E28

  • Parentheses for negative numbers in Excel 2011

    I couldn't find an appropriate section for this question.  Please forgive me if I posted it in the wrong place.
    I've been using Excel for Mac 2011 since it came out. Up until I updated to Yosemite, formatting negative numbers with parentheses appeared in the drop down menu, i.e., right click to get format cells, click "number" tab on top, click "number" on left. There is a dialog as to how you want negative numbers formatted. Parentheses used to be an option but no more. I attached a screen shot. Help!

    Same issue here with Excel 2011, problem started with the Yosemite installation and was not fixed with 10.10.1 nor the latest Microsoft update. 
    It's a big problem for accountants!
    On the Microsoft forum this gentleman replied with a workaround but it's a hassle to have to do this for each new spreadsheet.
    JonathanBuhacoff replied on November 9, 2014
    If you go to the dialog shown in Phillip's post and select "Custom" on the left side, you can enter this to get the parenthesis back:
    $#,##0;[Red](-$#,##0)
    Or this to use square brackets:
    $#,##0;[Red]"["-$#,##0"]"
    The format means  use $#,##0 for positive numbers and use [-$#,##0] in red for negative numbers.
    You could remove the hyphen too and just do this:
    $#,##0;[Red]"["$#,##0"]"
    I hope Apple takes note and pushes a fix for us.

  • Excel 2011 crashes on launch

    I've had great success with Excel 2011 on OS 10.6.8.  Up until today.  Now, Excel crashes on launch, tries to recover, and crashes again.  I read the previous comments about a) hold down shift key and launch  and b) delete the /plist file.  Tried both, no success.  I could not find other suggestions, so who's willing to help and what info do you need to diagnose this problem?  I can still launch Excel 2008, fyi.  And Word, etc, all other MS office products...
    Thanks in advace.

    I had a user with this issue that had somehow dragged the Excel app out of Applications and onto the desktop. Look in Applications / <Office 2011 folder> and see if Excel is missing.  If so, copy/paste the app back into place, delete the desktop copy, and if necessary replace the shorcut on the launch pad by dragging from the Applications location. 

  • I can't use arabic with excel office for mac 2011

    why i can't use Arabic with excel office for mac 2011?

    anajjar wrote:
    why i can't use Arabic with excel office for mac 2011?
    Because even after 14 years MS has failed to add arabic support to most Office products for Mac.  Instead use Open/LibreOffice or Numbers.

  • HT201250 Problem with recent Excel 2011 update

    I installed an update to Mac Excel 2011 yesterday.  It complete sucessfully but the VBA component is now missing.  All Exel files with VBA code now cannot be opened.  The following message is shown for each:
    Excel could not open xxxx.xlsm because some content is unreadable.  Do you want to open and repair this workbook?
    I attempted to use the Time Machine to restore the Excel applicatiion but it will not run because it says Excel is open when it is not.
    Has anyone had a similar problem with the latest update to Excel?

    I bought a refurb ipad 32gb. I have noticed when itunes via wifi fails to do an app update, it screws the whole ios; thereby forcing ipad to go into recovery mode. I thought Apple learned the hard way not to allow one app to bring down the whole os!! This is the 5th time an app caused this. last time Apple forced me to reinstall Itunes, wasted 2 hrs.
    I worked hard saving up enough funds to get an iPad. Yes, i even paid Applecare too. If this can be fixed, I want a replacement or a full refund.

  • Excel 2011 is not compatible with 10.9

    While Excel 2011 will run on 10.9, it does not have full functionality.  The Microsoft website confusingly states that Excel 2011 is compatible with 10.6 and later.  However, according to their customer support that means 10.6 and "older".  The biggest problem I'm running into is that I can no longer create macros.  Has anyone found a fix to this?

    You need to talk with a "different" customer support person.  "10.6 and later" means "10.6 and newer" as in 10.6, 10.7, 10.8 & 10.9.  I create/edit/run macros  and VBA code in Excel 2011 every day with no problems.

  • AppleScript for mail merge with Excel data?

    Is there any approach for an AppleScript that lets you use Excel data as source for some kind of mail merge operations? If not, would anyone here be interested if someone (I?) would take a closer look at some kind of a (AppleScript Studio) solution for this?

    I'm not sure I get the question.
    If it is "could you use AppleScript to create mail merge for Pages with Excel?", the answer is, Yes. Both Pages and Excel are scriptable.
    If the question is "has anyone done it yet?", I don't know, but it could be a fun exercise.
    If the question is "would there be a market, if someone (you?) wrote and released such a script?", I cannot tell, but personally I would probably write a hack that worked only for my own needs - if I had them. The overhead with usability, testing, different address formats, languages, different Excel sheet formats, and so on, makes me guess that the investment wouldn't pay off for a generic solution. Especially considering both Pages and MS Office already have their own mail merge functions.

  • Use Applescript to list duplicates in Mac Office Excel 2011

    Hello Apple scripters!
    I was thinking if it's possible to use Applescript in Excel to find duplicates using conditional formating then export it on a new list.
    Compare 2 columns>highlight duplicates>add result in a new csv file together with either the whole row or column line.
    Thanks!
    Ernesto

    You might try looking/posting here.
    Microsoft Support – Office for Mac
    Microsoft Support – Office for Mac (2)
    https://discussions.apple.com/thread/4847068?tstart=0
    Try a restart.
    Put a copy of the file in the hard drive level Users/Shared folder.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About

  • Excel 2011 - Issues with Macros

    Hi everyone,
    I'm using Excel 2011 and trying to record a Macro and save it in my Personal Macro Workbook but I get the following error: "Personal Macro Workbook in the startup folder must stay open for recording"
    Can someone help?
    Thanks
    Max

    Since this question is about a Microsoft product, you might have more luck getting suggestions if you ask in Microsoft's own forums.
    Regards.

  • Is there a way to open old Excel 2004 files in Excel 2011?

    I recently bought a new MacBook Pro running Mountain Lion, and installed the latest version of Office 2011 for Mac. THEN I discovered that some of my older Excel workbooks, created on my ancient PowerBook G4 back in 2007, WON'T OPEN. I get a message saying that there is an error, and then Excel crashes. I really need to get access to this workbook on my new computer! It opens just fine in older versions of Excel, no corruption issues at all. It's just when I try to open it with my new laptop and Excel 2011. Does anybody out there have a workaround for me? I have loads of data in this spreadsheet and now no way to access it! Help!

    Make sure Office 2011 is fully updated. It shouldn't have a problem opening those documents.
    When I open a 97 - 2004 workbook, it states that it needs to be converted. That may be what is crashing on your copy of Office.
    Have you tried creating a new account and see if you can open them there.

Maybe you are looking for

  • How to control the shared libs when creating an new OC4J  in AS 10.1.3.4

    Hi there I experience some wired behavior in AS 10.1.3.4! I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server). When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries When I create an OC4J instan

  • What's the difference between redundancy and recovery window for retention?

    Hello all, I'm still trying to get a grip on this concept for RMAN backup planning. I recently ran into a situation as follows. I have the backups set to a redundancy of 1. I have instance1, which had GRID jobs to run RMAN backups as follows Incremen

  • Cfgrid display in Safari Browser

    My cfform displays and shows data in IE and Firefox but not Safari. I can see the cfgrid and form but no data shows in the grid. Any ideas?

  • Recording sign on the ipad when i make call

    dears i have skype on my ipad, when i make a call from it, i have recording word on the top of the ipad,,,, what is this,,, is it a virus????

  • Why does my login panel resize?

    Hi, This is probably a basic problem. So please bear with me. I'm making an application and Applet, where the user needs to log in. I created a Frame, that scales to cover the whole screen.      dimension = Toolkit.getDefaultToolkit().getScreenSize()