Newbie trying to convert this to use numbers from excel

I am fairly new at this and have not worked with numbers at all but the problem I have is that I do not have Excel on all my Mac's and this needs to work with Numbers.
it is a basic copy and paste based on a particular tab in Safari and another in numbers
ie.. i want to copy content from a specific safaritab()  to a specific tab in numbers by name.. this works perfectly with using excel (took forever for me to piece together) but I am struggling to convert to use in numbers instead.  any help would be most appreciated.
this is the working code for using excel that i wish to convert to use numbers instead.
#Code begin
tell application "Safari" to launch
tell application "Safari" to activate
useSafariTab(3)
copyDataB()
tell application "Microsoft Excel"
activate
activate object workbook "SpreadSheetA"
activate object sheet "DesiredTabName"
clear range range "A:Z"
select cell "a2"
end tell
pasteDataA()
on useSafariTab(a)
tell application "Safari"
set thisTab to tab a of window 1
set current tab of window 1 to thisTab
delay 1
end tell
end useSafariTab
on copyDataB()
tell application "System Events"
delay 1
keystroke "a" using {command down}
delay 3
keystroke "c" using {command down}
delay 5
end tell
end copyDataB
on pasteDataA()
tell application "Microsoft Excel"
activate
activate object workbook "SpreadSheetA"
delay 2
end tell
tell application "System Events"
keystroke "v" using {command down}
delay 5
end tell
end pasteDataA
#Code end

In Numbers the hierarchy is document, sheet, table, range whereas in Excel the table isn't required.  So for pasteDataA() try this:
on pasteDataA()
  tell application "Numbers"
  tell document "SpreadSheetA.numbers"
  tell sheet "DesiredTabName"
  tell table 1 -- or table name if you have one
  set selection range to cell 2 of column 1
  delay 2
  end tell
  end tell
  end tell
  end tell
  tell application "Numbers"
  activate
  tell application "System Events"
  keystroke "v" using {command down}
  delay 2
  end tell
  end tell
end pasteDataA
I didn't clear the range first but assume you will be able to work that out. Remember you need to specify the table when you do that.
SG
P.S. Note use of the .numbers suffix when specifying the document, if named.  Otherwise you can use document 1 or front document.

Similar Messages

  • I have adobe acrobat pro for windows and it is freezing up when I try to convert a word file to pdf... I have tried to get this done six ways from Sunday but it is just not working... help!  Chris.

    I have adobe acrobat pro for windows and it is freezing up when I try to convert a word file to pdf... I have tried to get this done six ways from Sunday but it is just not working... help!  Chris.

    It would be helpful to know what version of Acrobat, WORD, and operating system.
    Without that info, I would suggest at this point to open your WORD file and then go to the print menu and print to file using the Adobe PDF printer. Open the created file in Distiller and see if you get a PDF. If so, check to see if AcroTray is running in the background.
    You say you tried many ways. It would help to know what you tried and what worked or did not work, and at what point the failure occurs.

  • Acrobat XI Pro will not activate when trying to convert to an Acrobat form from an existing Word document

    My version of  Acrobat XI Pro will not activate when trying to convert to an Acrobat form from an existing Word document.  Acrobat not responding.
    Please advise
    John B

    Hi johnb69345359,
    I am sorry for the inconvenience caused. Lets try to resolve this issue.
    I would require few details in order to diagnose the issue correctly :-
    1) Are you able to launch Acrobat XI pro ?
    If yes, please try Help -> Repair option to repair Acrobat XI pro. Then try to perform the covert operation.
    2) Let me know the Operating system installed on your computer.
    3) Is there any error code or error message?
    Regards,
    Aadesh

  • I have Mac OS X version 10.7.3 Does this have any numbers or excel like programs or will I need to purchase them?

    I have Mac OS X version 10.7.3 Does this have any numbers or excel like programs or will I need to purchase them?

    Hi Linda...
    You can purchase Numbers from the App Store.
    You can launch the App Store from your Apple menu > App Store
    Or from your Dock >
    Or from your Applications folder.

  • Slow in updating price lists using import from excel

    Hello,
    I am concerned about the slow process of updating prices in SAP using import from excel. It took me hours to complete the upload for 3700 item rows and 2 price lists. It is also slow in adding warehouses. I am not sure if the account segmentation has something to do with it but it never happened to my other databases where there is no account segmentation. Other than this, SAP is running real fast on the server.
    How could this be? Thank you and regards.
    Derrick

    Yes vijay, There is query params in step 2 of DTW.
    2 week before only we have updated to SAP B1 2005B PL41,
    but i'm not sure whether DTW is updated to latest version or not ?
    Current DTW version is 2005.0.15 & API version is 6.80.320.
    What is procedure to update DTW ?
    Jeyakanthan

  • HT4642 I use numbers with excell 2010, but it does not show the drop tabs, just a number, is this fixable?

    I have a iphone5 and trying to use numbers with it, I use excell 2010, but it will not transfer the dop down boxes on excell 2010. Is this fixable or what?

    Welcome to Apple Support Communities
    The first Mac with Thunderbolt was the Early 2011 MacBook Pro. If you have got a 2010 MacBook Pro, you have got Mini DisplayPort instead of Thunderbolt, which are the same, but Mini DisplayPort can't be used to connect external disks.
    To check which MacBook Pro you have, open  > About this Mac > More Info, and you will see the MacBook Pro model. If it's Mid 2010 or older, you haven't got Thunderbolt, so you have to connect the external drive through USB

  • Trying to convert to wmv using "share"

    i'm trying to convert avi files in i movie to wmv using share.
    I have limited success e.g have a 30 second clip which when converted using share comes out edited to 15 secs!
    Anyone got any ideas?
    If not any free avi to wmv converters around?
    Thanks!

    Hi John,
    I've got to ask. Why are you bothering to convert to WMV? What's wrong with Quicktime? If your target computer is a Windoze PC you can install Quicktime on it.
    iMovie is not a file converting program and does not like AVI at the best of times. Convert your AVI containers to either DV or MOV first then import them to iMovie if you must. However, you may find you lose the audio when you convert the AVI files depending on how they were created. If so, you may need a more advanced converter like Visual Hub, but it's not free. It costs $25 (US). I have it and it rocks!
    Here's a link to a free converter 'ffmpegX'.
    http://ffmpegx.com/download.html
    You can aslo try Mpeg Streamclip, but I don't know if it will convert to WMV.

  • Convert delimited list of numbers from function to use in SELECT IN () quer

    Hey guys,
    I have to create a view based on some conditions. I have to get only the rows with specific IDs. I do the calculations for the logic using a function which returns a delimited list of the IDs. When I use this string in the query, it gives me a "Invalid Number" error.
    Here's the skeleton
    Select table1.col, table2.col1, table2.col2, table2.col3
    from table1, table2
    where table2.col1 in (function(table1.col))
    function() returns 12,34,564,7657 ....
    The reason that I am using a function to get the IDs is that the logic involved is complicated to get the right IDs. Any help would be appreciated
    Thanks,
    -P

    You can do this.
    select emp.* from  emp,
    table (sys.dbms_debug_vc2coll (7499,7788,7934))
    where empno = column_value
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7788 SCOTT      ANALYST         7566 19-APR-87       3630                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300    

  • How do I create a series of text frames using values from Excel list?

    First of all, this is the very first script I'm attempting to write from scratch. I'm completely green at scripting, and I've picked up a few snippets from Adobe's ID scripting guide, but nothing has really stuck yet relating to this particular objective.
    My supervisor keeps a master list of ad spaces, with the name of the account, how wide the space is, and how tall the space is, all in an Excel sheet. These spaces can number in the hundreds, and I am stuck manually drawing one rectangle for every space, which takes a very long time.
    I'd like to create/have help creating a script that will take these values and "automagically" draw these spaces in the form of text frames, with the width (in columns) and the height (in inches) defined by the values in the master list, as well as the name of each account appearing in the subsequent text frames.
    The script doesn't necessarily need to be able to pull the values straight from the Excel sheet; I can transfer the values to a support text file if needed, or directly into the script, changing it as I need it. A big thing (if it is not able to pull right from an Excel sheet) is that the number of spaces changes weekly, and so do the accounts, and the width and the height. Accordingly, it would be ideal if the values from the sheet could be changed easily, so as to create a new set of spaces as needed.
    Positioning for each space is not crucial, only height and width. If they all appear on top of each other on the same page, that will be a result for me. The main idea is to not have to draw them all manually, one by one.
    To me, this sounds like a tall order, but hopefully some experienced scripters out there can assist me, as I wish to become experienced as well.
    So, the TL;DR version:
    - Script needs to draw a series of text frames.
    - Text frames dimensions need to be defined by width and height values from Excel sheet.
    - Text frames must have account name as contents (from account names in Excel sheet).
    - Accounts, width and height change every week in the Excel sheet, so must be relatively easy to exchange all of the values.
    - The width values are on the Excel sheet as columns. It would be ideal if the script could convert those numbers into multiples of columns as needed.
    - (Optional) Script can pull values directly from Excel sheet.
    - (Optional) Script can define text frame fill color as gray. (If it works as I think it will, I could just select all the resulting text frames myself and set them all to gray at once... I'm not that lazy )
    Thanks in advance to whomever can assist in any possible way, even if it is just a push in the right direction. This script will save 1-2 hours of tedium every week.

    Sound like the perfect thing for InDesign Scripting.
    I would copy the Excel contents into a text file, to get a format that is easily read from InDesign, and there will automatically be a TAB for each "cell" just using copy/paste.
    Here is a piece of code, that you perhaps could go on with (adding variable to change pages and location on page, and other stuff).
    The readFileLineByLine function, can be easily re-used with any function using "callback". You simply supply the function to it, that you want to be executed for every line of text that is read:
    const COLUMN_WIDTH = 2; // Define the column width in inch
    var pageIndex;
    var textFramesExported; // not implemented.
    // Add a new dokument. Set myDoc to app.activeDocument to use
    // the current document instead of creating a new one.
    var myDoc = app.documents.add();
    // The doSomethingWithTextRow function is called upon for every line of text read.
    readFileLineByLine('c:\\test.txt', doSomethingWithTextRow);
    function doSomethingWithTextRow(row){
        // We expect the text line to be TAB separated (\t = TAB). We get that from just copying the contents of an
        // excel file into a text document.
        var cells = row.split('\t');
        var companyName = cells[0]; // The Company name in the first slot of the array
        var width = COLUMN_WIDTH * cells[1];
        var height = cells[2];
        // Create a new text frame for every row handled
        if (pageIndex==undefined) pageIndex = 0; // Count up when you have exported a number of texts, I leave this for you to do.
        var newTextFrame = myDoc.pages[pageIndex].textFrames.add();
        newTextFrame.contents = companyName;
        // The text frame is created in the top left corner.
        newTextFrame.geometricBounds = [0, 0, height + ' in', width + ' in']; // Top, Left, Bottom, Right
        // You might want to move the textframes to other positions, keeping track of how many you put out per page.
        newTextFrame.move( [10, 10] );
    function readFileLineByLine(path, callbackFn){
        var myFileIn = new File(path);
        if (File.fs == 'Windows'){
            // This was probably added to recognize UTF-8 (even without its start marker?)
            myFileIn.encoding = 'UTF-8';
        myFileIn.open('r');
        var myEncoding = myFileIn.encoding;
        try{
            if (!myFileIn.exists){
                throw('Missing file: ' + myFileIn.fsName)
            var ln = '';
            while(!myFileIn.eof){
                // Read the lines from the file, until an empty line is found [now as a remark].
                ln = myFileIn.readln()
                // if(ln !='' && ln!='\n'){
                   // Call the function supplied as argument
                   callbackFn(ln);
        }catch(e){
            alert(e);
            gCancel = true;
        finally{
            myFileIn.close();
    The file in C:\ in my example was saved as UTF-8 and looks like this (showing hidden characters):
    Message was edited by: Andreas Jansson

  • ORA-12154 error when trying to connect to Oracle 11g DB from Excel 2010

    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?

    user10832104 wrote:
    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?
    If you are able to connect with sqlplus, then this really becomes a question of how to define a data connection in Excel.
    But after quickly googling ..
    In excel ...
    "Data" tab
    "from other sources"
    "from data connection wizard"
    select ODBC DSN
    On data link properties, select the "connection" tab
    select "Use Data Source Name" and hit the drop-down
    select a dsn that you had previously set up to point to the oracle database.
    Anyway, that looks like how it is supposed to be done.  I'm getting a dll initialization error.  Probably due to the fact I have both 32-bit and 64-bit oracle clients, and windows never handles that very gracefully.  But then Windows never graceffully handles anything that isn't MicroSoft.   To paraphrase Forest Gump, "My momma always said Windows was like a box of chocolates.  You never know what you're going to get."
    In any event, the error you report means it was actually tying to look it up in tnsnames, but what you supplied wasn't found there.  That can also be a big issue when dealing with MS products, because they don't use the same terminology, so lead people into entering something other than what Oracle expects.  Are you referencing an ODBC DSN?  If so, have you tested that apart from Excel?

  • Can the uses import from excel?

    Apex comes with a neat feature to import from excel. As far as I can see this is meant as a developer tool, to help migrate from excel to apex. Can this feature be provided to the users inside an application? I would like for the users to be able to insert rows into a predefined table based on their excel sheets. Similar to the import feature they should be able to just cut'n paste from excel into a text area, click next and then get a neat display of the data they are about to insert (just like in the tool->data load/unload tool).

    Hello,
    The following - http://htmldb.oracle.com/pls/otn/f?p=38131:1- is an example, by Vikas, for doing just what you are asking for. You can download the source code and adapt it to your specific needs.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • Trying to convert this sql into a crystal report

    Post Author: ru4real
    CA Forum: General
    I have this statement provided to extract via sql but i cannot emulate this in crystal.  can anybody help?  here is the run down.  essentially iam trying to list records in one table auanmast which is not present in the other table auanregs based on reg dte (from) and reg til (to)  if this record is not in the auanreg table then list the ani_num from the auanmast.  (however there is not a null field present in the auanreg table), so a left outerjoin won't work.
    ani_num      reg_date    reg_til
    5555           01/07/08    30/06/09
    5555           01/07/05     30/07/06
    so the record missing in auanreg is reg_date 01/07/07  and reg_til = 30/06/08 and iam trying to get the query to list all ani_num from auanmast that have no date assigned with reg_date & reg_til date the link being ani_num to 
    select ani_num  from auanmast a  where ani_num not in (select ani_num                        from auanregs                        where reg_dte = '01-Jul-07'                        and reg_til = '30-Jun-08'                        and ani_num = a.ani_num)  and ani_dth is null  and ani_dep is null and ani_num not in (select ani_num                     from auantags                     where ani_num = a.ani_num                     and tag_set != '2007/08')  order by ani_num /
    Hope someone is upto the challenge for this one....cheers

    Post Author: V361
    CA Forum: General
    Have you tried adding a command.  Go to select datasource, select command, you should be able to use the SQL there.  ( OF course it won't be just copy and paste ) unless you are lucky.

  • Newbie trying to connect to Oracle using ojdbc14

    Hey Programming Pals;
    I am trying to connect to a remote oracle data base.
    I have installed oracle client (allowing me to be able to connect with PL/SQL developer).
    Now I need to connect with JDBC.
    I down loaded ojdbc14 and put it in my tomcat bin directory.
    I than made an entry in path and in classpath to this jar file.
    Here is the code I am using to try and connect with:
    try
    {                                                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    catch (ClassNotFoundException c)
    System.out.println("Could not load the ODBC driver:" + c);
    Here is the error I am getting:
    An error occurred at line: 38 in the jsp file: /jsp/form.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\jhtp5\jsp\form_jsp.java:85: package ojdbc14.oracle.jdbc.driver does not exist
                                            DriverManager.registerDriver(new ojdbc14.oracle.jdbc.driver.OracleDriver());
    I browsed through the jar and verified this path exists. Why can't the jvm find it?
    Here are my system variables:
    CLASSPATH:
    .;D:\Program Files\Apache Group\Tomcat 4.1\bin\ojdbc14.jar
    PATH:
    D:\Program Files\Apache Group\Tomcat 4.1\bin\ojdbc14.jar;D:\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
    Any help would be appreciated.
    Luke

    Tomcat doesn't use the System classpath.
    Put the ojdbc14.jar file in the web-inf/lib directory of your web application, restart Tomcat, and try again.
    Cheers,
    evnafets

  • A newbie trying to do a VDI using Hyper-V

    Hi team,
    We are a small company with 150 PCs and we would like to try the VDI using Hyper-V in Windows Server 2012 R2 Datacenter.
    We would like to go with a pilot of 20 people for now. We bought a brand new server HP ProLiant DL380p Gen8 Server and a new Disk array HP StorageWorks Disk Enclosure D2600. We have already AD (2008 R2) installed on another Server.
    The users will be using thier PCs and the VM storage location should be in the new HP Disk D2600 recently bought.
    Could you please let me know what do you think? What are the best practices? What is the best approch to start this project? What would you do? What are the steps? Is there any way for the 20 people to keep thier OS and data and move to Virtual without any
    impact? I heard about something called Physical to Virtual?
    I'm new into this and don't know how/where to start. Thank you very much for any information that you could provide
    Thanks, Annie

    Hi Annie,
    Sounds like you have a good plan and your work cut out for you to get this implemented.  Starting with a pilot of 20 users is a good way to start.
    Here is a walk through of how to setup VDI, you will need to have Hyper-V already installed on the computer. http://blogs.technet.com/b/canitpro/archive/2013/04/25/step-by-step-deploying-virtual-desktops-with-windows-server-2012.aspx
    This should give you a good starting point.  I don't have any experience in using the HP Disk D2600,  you may want to look at HP forums, or call them direct to ask for how to set that up. 
    Good luck on your implementation. 

  • Newbie: trying to open a database using SQLPLUS, ORA errors

    Hi!
    Installed 10g (and latest patch) on Suse10.2. When I try to startup the database using SQLPLUS I get this:
    Redo Buffers 2932736 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    I check the alertlog:
    Fri Sep 7 11:33:27 2007
    ORA-00202: control file: '/opt/oradata/oracle/control01.ctl'
    ORA-27037: unable to obtain file status
    Linux Error: 13: Permission denied
    Additional information: 3
    Fri Sep 7 11:33:27 2007
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    Any ideas on whats causing this problem? I heve used google ALOT but have not found any good answers....

    Hi!
    Well, Oracle was not the user, but I have changed that now. But now I get this instead:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 100663296 bytes
    Fixed Size 1260288 bytes
    Variable Size 92275968 bytes
    Database Buffers 4194304 bytes
    Redo Buffers 2932736 bytes
    ORA-00201: control file version 10.2.0.1.0 incompatible with ORACLE version
    10.2.0.0.0
    ORA-00202: control file: '/opt/oradata/oracle/control01.ctl'
    So, I found some info about creating a controlfile, but that seems quite advanced...any suggestions?

Maybe you are looking for

  • Urgent : Domain creating for BPM in sql server 2008

    Hi, I have created the repository for SOA & BPM and installed the soa 11.1.1.7 in windows 64 bit. while am creating the domain for soa in weblogic server 10.3.6. Am getting error like [FMWGEN][SQLServer JDBC Driver][SQLServer]Could not find stored pr

  • How to put default section code in Automatic payment program(F110)

    Hi, Is it possible to put default section code(BSEG-SECCO) in transaction code F110 for down payment transactions through Automatic payment program. in our company section code is required field for vendor transactions, if i am doing the transaction

  • Dynamic access policy ACL not beeing applied to user

    Hi all I have just configured my ASA for ssl vpn I have created a dynamic access policy with an ACL in it. The user connects fine, and I can see on the logs that the DAP policy has applied to the user However when I click on monitoring, it says no ac

  • Trying to transfer Hi-MiniDisc files to my MacBook Pro

    Hi,I have a Hi-MiniDisc MZ-NH700 with a lot of music,and I´m trying to transfer it to my Macbook Pro with an OS X Lion 10.7.4 software. I connect the Hi-MiniDisc via USB port but my Mac didn´t detect it...do I need something to make it work? ...anybo

  • Unable to save a document to another user group

    This may be a basic configuration issue, but I have recently taken over the administration role for our BO 6.5 system, and have been unable to find a solution.  A user in a Prod Pwr group is trying to save a document to another Prod user group, where