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.

Similar Messages

  • Yet another Applescript file renaming question...

    Hi all,
    Well, having been a full-time Applescripter for five years at Apple, I thought it would be easy to dust my chops off and write a simple script to get a file name from one folder and paste that name onto a file in another folder.... but I guess 15 years of no-scripting has proven too much of a challenge to my aging brain... and I am on a time crunch to get this done for my client.
    SO, here is what I'm hoping to get help with.  I have no doubt it is pretty simple.
    File "A" is in a folder.
    File "B" is in a different folder.
    I need to GET the name of File A and use it to rename File B.
    Can one of you youngin's take 30 seconds and help an old dude out?
    Thanks a bunch,
    matt

    Niel... almost there.
    The script works perfectly (with me placing the path instead of just the folder)... thank you so much.
    One extra thing though... I didn't realize that the files are different file types (jpg and psd).
    So what do I need to do to change the name without changing the file type?
    THANKS again!
    Matt

  • 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.

  • Automation with Excel question

    Hello all,
    I'm very new to the use of automator and I'm trying to see if this software can help in what I'm trying to do before I find out later on that it can't.
    This is what I'm attempting to accomplish, I have a product that I create in excel I later take that product and input it into a different excelt product where specific information goes into certain blocks.
    What I'm hoping to figure out is having automator take the information from certain cells in product 1 and copy/move or whatever it into the other workbook into specific cells.... Then continue down the list until complete.
    Any information on this will help a ton.

    Yes basically it could just be copy and pasted...
    Workbook 1 has the information, A1 through A12 lets say has 1 block on information
    B1 - B12 a different set
    I would like something that would go through each set maybe for a set amount of likes and put the information into the 2nd workbook in specific areas.
    This would create about 20-30 different sheet entries making creating this product on a daily basis a whole lot easier since it's printed out and written by hand at the moment.
    Any suggestions as to what I can use to help these people accomplish this task faster and easier would be a great success.

  • 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.

  • Can you print from an iPad 2 using 3G in a home with no computer or wifi by using an iPhone 5 hot spot connection if the printer has been set up in another place with live wifi? I know this question is loaded but my dad lives in a rural area

    Can you print from an iPad 2 using 3G in a home with no other computer or wifi by using an iPhone 5 hot spot connection if the printer has been set up in another place with live wifi? I know this question is loaded but my dad lives in a rural area and is wanting a printer to use occasionally. He doesn't want to deal with a computer and I keep his iPad updated for him at my home.  Please shed some light on this for us PLEASE. Thanks

    In that case, it should be possible. I haven't tried this directly, but I believe it should work.
    You'll need to get an actual AirPrint compatible Printer.
    Check here for a list of Printers you can choose from.
    http://support.apple.com/kb/ht4356
    Once you have the compatible printer, using the Hotspot feature from the iPhone he'll have to create the Wifi bubble form the iPhone, and connect the Printer to that Wifi network.
    Then connect the iPad to that same Wifi network provided by the iPhone. When all that is done, the printer should appear in any of the Apps that can Print under the Action Arrow button.
    For instance in email, pressing the action arrow should show a Print option. In there the printer should appear.
    Alternatively you can simply buy a wireless router and setup the network through there even if there is no internet attached.  Connect the wireless printer to the router network, and connect the iPad or iPhone to that same wifi network to print.

  • Statistical calc with MDX question (Mode function as an excel)

    Hi All,
      I need to create an MDX Calc to Returns the most frequently occurring, or repetitive, value in an array or range of data.
      For example, the mode of 2, 3, 3, 5, 7, 10 is 3.
      In Excel I use the MODE() function but I don't know how to do this in MDX and add it as a measure in Universe.
      I can't do the formula in WEBI because we have big data volume and I can't retrieve all the customers in WEBI.
      We have SAP BW 7.0 and SAP BusinessObjects XI 3.1 fix pack 1.3
    Thanks in advance.

    Hi,
    it looks like you created the entry twice so I would suggest you close on of them:
    Statistical calc with MDX question (Mode function as an excel)
    I don't think that those kind of statistical functions are available in MDX. you can always go to se37 and use the bapi_get_functions to see the list of supported functions.
    Ingo

  • Use sumif() with Excel 2010 sheets stored on SharePoint 2010

    Hello everyone,
    I am experiencing an issue with two Excel sheets stored on SharePoint 2010 in a simple document library within a team site. One of the files contains the source data (data.xlsx) and the second file contains the formulas calculating different things (summary.xlsx),
    based on what is stored in data.xlsx. This basically works fine and we are able to do things like
    =SUM('http://sharepoint.demo.tld/Shared Documents/[data.xlsx]Sheet1'!$X$122:$X$123)
    and also complex things. That formula for example works fine even with only the summary.xlsx file opened. Means the reference to the data.xlsx file is working properly and I get the correct results. But as soon as the formula becomes more complex like
    =SUMIF('http://sharepoint.demo.tld/Shared Documents/[data.xlsx]Sheet1'!$L:$L;A2;'http://sharepoint.demo.tld/Shared Documents/[data.xlsx]Sheet1'!$X:$X)
    the formula only works fine when the source sheet (data.xlsx) is opened, too. I was expecting the summary.xlsx to store the last value in it and only recalculate the formulars when I force it to recalculate the formular. But as soon as I open summary.xlsx
    without data.xlsx being opened it displays #Value! - with and without recalculating the formulas. Seems as soon as the reference file is not opened this kind of formula gets broken. But I don't get it because SUM() does work fine even without the source file
    opened.
    Additionally, it becomes more strange. As soon as I open up the data.xlsx and enable editing the fields containing #Value! in summary.xlsx immediately represent the correct values.
    Does anyone know why this happens and whether there is a way to solve this? We will require this kind of formula for that kind of sheets.
    Thank you very much and kind regards,
    Chris

    Hi Chris,
    It is by design that the SUMIF function can only work when the source sheet is opened and the SUM function can work 
    without the opening the source sheet in Excel files.
    This issue will occur on all excel files no matter if they are stored in SharePoint or not, and it is not an issue in SharePoint.
    So if you want to make the SUMIF function to work, you need to keep the source sheet open.
    Here is a similar issue for your reference:
    http://www.mrexcel.com/forum/excel-questions/8335-error-sumif-formula-links-another-workbook.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Date format in iPad Numbers not compatible with Excel or OpenOffice

    I use Apple Numbers on my iPad2 to collect data in the field, then download the file from iWorks as an Excel file to my PC running Windows XP and Office 2003. In the Numbers file, I want to enter dates in the format: mm/dd/yyyy hh:mm and that format is the one I choose in the Numbers Date/Time options dropdown menu.
    When I open the Numbers-generated Excel file, the dates display correctly in that file as originally entered. The problem occurs when I copy cells with dates to another spreadsheet originally created with Excel 2003 or OpenOffice v3.3.0.
    When I copy Numbers-generated date cells to another spreadsheet, either in Excel 2003 or OpenOffice v3.3.0, the displayed dates are not correct and appear to be off by a consistent serial number value. In terms of Excel's serial date values, the Numbers date value is -1462 relative to the correct date value. e.g., 7/26/12 14:30 (equal to a serial value of 41116.6041666667 in Excel) entered into Numbers is displayed as 7/25/08 14:30 (equal to 39654.6041666667 in Excel) when that cell is copied from the Excel-formatted downloaded copy of the Numbers file to another, original, Excel spreadsheet. Ditto for an OpenOffice spreadsheet.
    Since the problem occurs with either Excel or OpenOffice, I have to believe the problem lies with Numbers......... Or I am doing something totally stupid.
    Any help on this?

    Thanks for that. In fact, I had just discovered that same distinction between Win and Apple date systems before I saw your reply.
    So, for me, the next meaningful question is whether I can change the date system used by my iPad and/or Numbers to match that used by my PC or...................... do I have to use a [+1462 days] workaround for eternity when copying dates from Numbers-generated files to spreadsheets I used on a daily basis in Excel on my Windows PC?
    I understand one solution is to migrate completely to Apple, but I am not ready to do that.
    Thanks, bob

  • Problems with Excel 2007 and Essbase 6.5

    Hi,
    Two quick questions:
    1. We are planning to upgrade our office to 2007, XP professional SP2 but still going to use Essbase excel add-in 6.5 for some users and Essbase 7.3 add-in for others. Has anyone faced any problems with this combination?
    2. The only problem I encountered so far was when I double click a member name for retrieval, the pointer (cursor/icon) flickers / flashes continuously. But when I take the pointer out of the excel spreadsheet, the flicker goes away. Does anyone know a fix to this. Thanks.

    Hi,
    I'm admin of an hyperion essbase database.
    I'm testing our addin 6.5.1 with excel 2007.
    First problem evocated on retrieve is confirmed.
    I continue my test and tell you if i find another problem.
    What i would say is that old version can be unsupported but i'm sure we can use this addin on excel 2007, i hope.
    Regards.
    Edited by: user9947793 on 4 sept. 2009 08:56

  • Excel 2013 VBA Compatible with Excel 2010

    Hello,
    I am new at working with VBA and have a question regarding an excel sheet with a VBA macro inserted.
    The sheet was created in Excel 2013 by another user, and my laptop runs Excel 2010.  I get script errors when I run it, however on Excel 2013 it works fine.
    My question is: Is there a way to make Excel 2010 work with Excel 2013 VBA scripts? Perhaps importing the library from Excel 2013 VBA to E-2010?  Or perhaps a way to save a VBA script in E-2013 to be backwards compatible with E-2010?
    Thank you all for your support.

    Open the workbook.
    Select Tools > References...
    The references that are in use have their check box ticked. They are all at the top of the list. Do any of those start with MISSING?
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Email attachment problems with "excel" files.

    I have just upgraded to the iphone 4 from the 3gs and since doing so any emails I receive with excel files attached will not open the attachment? These files openened with no problem on the same email account on my 3gs.
    Instead when I download the attachment and go to open it I am met with a page displaying....
    "Unable to read document.
    An error occured while reading the document."
    Has anyone else having this problem or even better anyone know what the fix is to get these files showing up?
    Any help would be appreciated,
    Kris

    After much frustration about excel files not opening and repeatedly not getting answers from apple, I think I might have found another way. It seems that the new apple OS does not support older versions of excel. By saving the excel file in question (Save As) to "Microsoft Excel 2007 Workbook" the Workbook opens just fine as an E-mail attachment. If you have macro's you can save as "Microsoft Excel 2007 Workbook (Macro Enabled)" and it works also.
    The Workbook in question as far as I was concerned was created in Microsoft Excel 2003.
    Hope this helps
    Apple needs to get on the ball. This was almost a dealbreaker with me.
    Android is looking better and better every day.

  • Working with excel on a Mac

    I am having trouble finding the equivalent of an <alt> <return> in excel on a PC. This allows you to make another line within a cell. Can anyone help please o please?

    Hi Nelliebear,
    " A push in the right direction was what I wanted. What I got was a shove off the train."
    Aside from the tone of Michael's initial reply, which I suspect skewed your perception, what you say you wanted is essentially what you got. Skipping Michael's post and taking the rest of the thread in order, here's a review.
    Sagesse's post noted that there is not an appropriate forum on this site for a question regarding issues with the Microsoft application Excel, and noted that Microsoft does have an Excel (Mac) forum, and that forum would be the best place to get an answer.
    Peggy went one further, and provided a link to Microsoft's newsgroups, where the appropriate forum (newsgroup) is located.
    Your reply, posted the next morning, ignored Sagesse's and Peggy's helpful replies and focused more on the tone of Michael's post than on the content. From this one example, you concluded "there are plenty of boorish people using macs." While that may well be true, I don't think it's a justifiable conclusion from the evidence of a single post in a single forum.
    Peggy then noted that clarifying the question, as Michael attempted to do, was a reasonable response.
    Michael's next post was a direct response to the tone of your earlier reply. Understandable, but not particularly useful, producing more heat than light.
    Peggy's was a throwaway. Again, not terribly useful.
    Your next response (to Peggy) was reasonable, under the circumstances, as was her reply. You perceived Michael's initial reply as 'uncivil,' Peggy perceived your response as 'hostile.' I see some truth in both those perceptions.
    Sagesse then brought the thread back on topic with a reminder that you had not yet answered Michael's question, a question whose answer would be useful in suggesting where to find a solution. (I'm aware that the subject/topic line should have been sufficient to indicate that the question was about MS Excel.) Note that both Sagesse and Peggy had already made the assumption that you were using MS Excel, and had pointed to a better place to find an answer less than 6 hours after your initial post and more than 15 hours before your first reply.
    Then, on the 4th day after your initial post, RickReed read your message and posted a reply which included the keystroke combination used in MS Excel to produce the result you wanted.
    Rick's reply serves to emphasise the reasons that the AppleWorks forum was not an appropriate place to post an Excel question:
       --AppleWorks users, as a group, do not use MS Excel enough to be expert with it (the same is true in the other direction—most Excel users are not expert with AppleWorks.)
       --Excel users don't regularly frequent the AppleWorks forum. Rick is apparently the first to arrive who could answer your question directly.
       --The control (ctrl) key is very seldom used in keystroke combinations in Mac native applications. A user not familiar with the keystroke combinations used in MS applications would be unlikely to come up with the addition of the ctrl key to the option-return used in Excel.
    Your most recent reply, posted about 3 hours after Rick's solution, ignores that post, noting only that +"so far, this has been really, well, NOT helpful."+
    I can't agree. Within 4 hours of your initial post you had three replies, two of which pointed you to a better place to ask your question. A quick glance tonight at the Excel newsgroup on the Mactopia site suggests you did not take that direction. Today, about 3 hours before your claim above, you had an offered solution. If those three posts are +"really, well, NOT helpful,"+ I'd be hard pressed to suggest what you would find "helpful."
    Regards,
    Barry

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • Excel Workbook with Excel Data Model stored on SharePoint - daily refresh

    I'm not sure if this is exactly the right forum but I'm hoping that someone here can either answer or point me in the right direction.
    I have an Excel Workbook with an Excel Data Model.
    The Excel Data Model uses SQL to contact our data warehouse and pull through data into tables.
    We are storing the Workbook on a SharePoint site and viewing it using Excel Services.
    The data in our data warehouse is updated daily and so I would like to refresh the workbook daily and remove the option to refresh the data in the browser.
    Is this possible with a workbook that has an Excel Data Model (I've seen lots of posts that relate to workbooks with connections to tabular models).
    Thanks
    Paul

    Hi Paul,
    I have answered this issue in this thread that you posted in SQL Server PowerPivot for SharePoint forum, please see:
    http://social.msdn.microsoft.com/Forums/en-US/9627939c-e9f1-48ae-a6ed-0c238d8f2d69/excel-workbook-with-excel-data-model-stored-on-sharepoint-daily-refresh?forum=sqlkjpowerpointforsharepoint
    Furthermore, this issue is more related to PowerPivot for SharePoint. If you have any more questions about PowerPivot for SharePoint, I would sugget you open a new thread in the forum below for better support:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=sqlkjpowerpointforsharepoint
    Thanks for your understanding.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • JSF Faces: can a detailStamp conditionally be rendered per row?

    Hi, I created a master/detail view as a table with an inline detail table. Is it now possible to render the detailStamp drill link conditionally? For example, I have a master table TAB1 with two columns C1 and C2. In the detailStamp faced I have the

  • Regarding reports of MCI7,MCJC, MCJB

    Dear All, I m trying to get following Standard reports from PM module but I was unable to get it. 1) MCI7 : when I entered Euip or Funct Loc details with period, after execution system gives message that "No data exists for                choosen sel

  • Change value of string within an array?

    Alright, so im trying to change "hello" to "Aello", there fore im changing the first letter of the string to an "A". This string is within an array: This is what i have: System.out.println ((char)split[1].charAt(0))='a'); but im getting an error

  • PP module is integrated

    How is PP module is integrated with SD?

  • Errors deleting Notes account

    Issue: When we attempt to delete a Notes account from a user, we receive the error "DominoExtension::Error while executing ' GetGroupsForUser WS_NSFOpenNote' errCode: '551'. Invalid or nonexistent document" (see below for the screen shot text). The d