Create copy and paste string

hi there, what I would like to do is the following
enter data into a cell, this searches for information on another sheet(I have work that one out) when the found information is highlighted that info is then copied to that cell
i can do this by copy and paste but wondered if it could be made simpler ie creating a box/ button that grabs the highlighted info and dumps it in the original cell
eg type in oranges to cell a1, that searches column on sheet 2 called product, it finds anything call oranges(there may be more than one) I choose which one I click either on it or on a button or something and it dumps that info back to a1 then performs the lookup which I have previously sorted
i I hope this makes sense
i am not very knowlegable re using spreadsheets so a simple explanation would be best
kind regards

The script below will do something like what you describe:
Copy into AppleScript Editor, enter your value in A1, and click the green triangle 'Run' button. Your choice in the dialog is then inserted in cell A1.
If you're doing this a lot you could place it in an Automator Service and assign a keyboard shortcut.  You could also skip the first step of entering a value in the the cell first, and have the script ask you directly, then insert the value for you.
SG
property currentTable : "Table 1"
property searchCell : "A1"
property lookupTable : "Products"
property lookupColumn : "A"
tell application "Numbers"
  set s to front document's active sheet
  set c to s's table currentTable's cell searchCell
  set searchValue to c's value
  if searchValue is missing value then return
  set productList to s's table lookupTable's column lookupColumn's cell's value
  set matchesList to {}
  repeat with i in productList
  if i's contents contains searchValue then copy i's contents to end of matchesList
  end repeat
  try
  set selectedMatch to choose from list matchesList with title "Which product?"
  set c's value to selectedMatch
  if c's value is 0 then set c's value to ""
  on error
  display dialog "No matches. Try again." buttons "Ok"
  end try
end tell

Similar Messages

  • If I copy and paste a comment in a pdf, when I create an xfdf file the copied comment isn't included.  Is there a way to add these copied comments to the xfdf file?

    If I copy and paste a comment in a pdf, when I create an xfdf file the copied comment isn't included.  Is there a way to add these copied comments to the xfdf file?

    Hi Steve Whipple,
    This Link (Acrobat Help | Importing and exporting comments ) seems relevant to your query. Please let me know if it helps you export comments to xfdf file.
    Regards,
    Rahul Tyagi

  • I built an ad using layers saved it and then converted it to a jpeg. Now when I go into elements 11 to do anything else it will not allow to copy and paste to create a new layer. What am I missing?

    I built an ad using layers saved it and then converted it to a jpeg. Now when I go into elements 11 to do anything else it will not allow to copy and paste to create a new layer. What am I missing?

    You know that you lost the layers when you saved it as a jpeg, right? But you're saying you can't add layers to the jpeg now when it's open in the editor? Go to Image>mode and be sure it's RGB, for starters. Are all the commands in the Layer menu grayed out?

  • Don't know how or where to create user.js file so I can add script to allow copy and paste into a webbased email

    I am trying to compose an email from the email address on my web page. The email editor program (or Mozilla) doesn't allow me to do that. The instructions that Mozilla provided said to find the user.js file in Firefox's profile directory. I can't find such a file. I don't know where or how to create this file or how to write into it the lines that the instructions provided. I also don't know what url I am supposed to substitute for mozila.org that is in the lines of script.

    This was helpful. Now, to to do what I need to do I have to add something to the user.js file as per directions regarding ''setting prefs for Mozilla Rich Text Editing Demo'' to allow a copy and paste. It instructs me to change the URL from mozila.org to where I want to enable the function. I am not sure what that means. I am trying to to do something in the "back office" of my web site. I want to send an email from the web site's email. I am trying to copy and paste a pdf file into the body of the email but was not able to do it. I was directed to the setting prefs page. Do I change the location to the URL of my web site or the web site of the web host?

  • Copy and paste titles wasn't supposed to automatically create a new title since the last update ?

    I thought that one of the updates during this year for premiere includes the smart idea of using titles the same way that FCP does, copy and paste creates a new title so when you change the content it will not affect the original title.
    but I just did copy and paste and it still using the same title asset so when I change one it affect it other one.
    please let me know if I'm doing anything wrong.

    Thanks ! that did the trick !

  • With PS 7  create new  Place two objects on the new file  then you may cut copy and paste Cs2  create new  place two object on the new file Cut is not available how does one cut and paste in new file

    With PS 7
    create new
    Place two objects on the new file
    then you may cut copy and paste
    Cs2
    create new
    place two object on the new file
    Cut is not available how does one cut and paste in new file

    If your using File>Place then photoshop cs2 creates what's known as Smart Objects, which photoshop 7 didn't have.
    In photoshop cs2 you can rasterize the smart objects and that should make the Cut function available.
    Select both placed layers, right click on the area to the right of the tumbnail and select Rasterize Layers.
    If in photoshop cs2 you to Help>Photoshop Help and look under Layers>Smart Objects, that should give you a good overview of what smart objects are.

  • Can the forms created in Forms Central be copied and pasted into Muse?

    Can the forms created in Forms Central be copied and pasted into Muse?

    Hi,
    The form that you create via FormsCentral can be embedded in your Muse site (in Muse you can select Object/Insert HTML and then paste the embed code that you get via FormsCentral by clicking "Distribute" Tab / Embed button.)
    See http://forums.adobe.com/message/5252743#5252743 on how to get the embed code via FormsCentral.
    See https://my.adobeconnect.com/p73yae8df5r/?launcher=false&fcsContent=true&pbMode=normal on how to paste it on Muse.
    Thanks,
    Lucia

  • 2012 string copy and paste

    In 2012, if I copy and paste from one string to another, the text turns on Bold and Underline.  Does this happen you everyone else?  Is this a bug that has been or need to be reported? 
    Solved!
    Go to Solution.

    This problem existed way before LabVIEW 2012 but because of the random nature, you might not have bumped into it. It is not a new problem.
    You are lucky with only bold/underline. Long ago, I got 20pt greek symbol (or similar) font for a while when pasting.
    LabVIEW Champion . Do more with less code and in less time .

  • Copy and Paste from Word document to Role comment creates an error

    I am receiving calls from access request creator saying they are getting error message when they copy and paste text from MS Word to role comment box. If they use the notepad they don't have any issues at all.
    Error: "The ASSERT condition was violated"

    Hi Mitesh,
         I suggest you to check the basic configurations first. This could be due to some wrong configurations.
    Also you may check below Note.
    2105159 - ERROR: The ASSERT condition was violated: RABAX_STATE
    Regards,
    Fazil

  • Error while copying and pasting group of activities

    Hi,
    I am getting an error while copying and pasting a group of activities. Can anyone let me know why I am getting this message.
    type : EStringListError
    Event Code : SLDNA-0655-B
    Description : String list does not allow duplicates
    thank you.

    I had the same error and reported it to Oracle. They requested an XER copy and I am waiting for thier response. This problem is for that particular project only. To work around it do the following:
    Create a new project, open both projects, go to wbs view, copy all wbs's from the correpted project to the new project. The new project will work fine and get rid of the correpted one.
    Good Luck.

  • Copy and paste in Swing HTML editor

    Hi,
    I have two related questions:
    1. Is there any detailed documentation on the method insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) in class HTMLEditorKit available? The information included in the API specification is very reduced.
    2. Is there any way to do copying and pasting in an HTMLDocument that preserves text format and does not create a new paragraph?
    Thanks in advance,
    Roberto Moriyon

    Hi kdhkdh,
    In the typical Mac application, including Safari, you can copy items such as text or pictures by selecting the item to be copied and then either using the Edit menu > Copy or the keyboard shortcut Command-C. Paste is accomplished by selecting the location you wish to paste into and then Edit menu > Paste or the keyboard shortcut Command-V. See this article -
    OS X: Keyboard shortcuts - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Copy and paste array between instances?

    I have A.vi and B.vi. The last time I used these was in 8.6. I now have to use them on a machine with 8.2, but A.vi does not work in 8.2 without a bunch of tweaking, so I made it A.exe.
    A.exe builds and recalls files that contain arrays of DaqMx channels. I create long lists of channels once, and then since they are stored to a file, do not have to create them again. In the past, instead of adding code to B.vi to call the file, I would just open the file I wanted with A.vi, then copy the data from the array of channels, and paste it into the front panel of B.vi before pressing run.
    I cannot do this now. Is it because A is an EXE so the two are in different Application instances? I have not tried making B an EXE (nor do I want to), but I think it wouldn't matter because they would still be in different instances?

    You recreated numeric and string controls in an EXE. I agree that you can swipe these, CTRL C, and then CTRL V in to a VI. If I replace the CTRL C action with a Right Click> copy data, I get a picture in the VI.
    I can go to a numeric or text control or indicator within my EXE, right click, copy data, then paste that into another control within my EXE. If I then immediately go to a control in the VI, the Right Click>paste data option is greyed out and doing CTRL V drops a picture of the controlon the front panel. I did not select the control when I copied, I only highlighted the data inside the control.
    CTRL C or CTRL V is never an option when operating on array controls. I do not want to copy and paste individual lines of the array, I want the whole array data. This is done by right clicking on the numeric within the array index display and choosing copy data. In an EXE, this is your first option. In a VI while running, this is the third option. In a VI while not running, this is under data operations.
    I tried every combination of running and not running, and took screenshots, but it is hard to see exaclty what action I am performing.
    Attachments:
    Copy Array Data Running.jpg ‏37 KB
    Can't Paste Running.jpg ‏22 KB
    CTRL V of Right Click Copied Text.jpg ‏24 KB

  • Copy and Paste functionality required in Webdynpro Java

    Hi All !!
    I want to create a functionality in which i can copy the contents from table (Created in Webdynpro Java) and paste them below in same table.
    Scenario:
    I've a table UI (Created in Webdynpro Java) in my screen. Table UI is displaying data from database.
    Modifications, Insertion and deletion of data are allowed in the table control which will in turn reflect to Database.
    Now i want users to copy and paste the rows in the Table UI and past it in same table 
    Is it possible or not ?
    Can any one help me in this regard?
    Regards,
    Abhijeet

    Hi Abhijeet,
    try this.
    Assuming Value node Customer with attribute cname, cno and sal is bound to the table.
    //creating Dynamic node inside wdDoInit method for copy the table row details.
    IWDNodeInfo nodeInfo = wdContext.getNodeInfo().addChild("DynamicCustNode", null,true, false, false, false, false,
         true, null, null, null);
    nodeInfo.addAttribute("custName", "com.sap.dictionary.string");
    nodeInfo.addAttribute("custNo", "com.sap.dictionary.string");
    nodeInfo.addAttribute("custSal", "com.sap.dictionary.double");
    IWDNode node = wdContext.wdGetAPI().getRootNode().getChildNode("DynamicCustNode", IWDNode.LEAD_SELECTION);
    node.addElement(node.createElement());
    Inside View take a Button Say Copy,inside the action of the button store the selected table row data in the created dynamic node and copy
    the dynamic node details in to your Value node that is bound to the table.
    int leadSelected = wdContext.nodeCustomer().getLeadSelection();
    int n = wdContext.nodeCustomer().size();
    IWDNode node = wdContext.wdGetAPI().getRootNode().getChildNode("DynamicCustNode", IWDNode.LEAD_SELECTION);
    node.getCurrentElement().setAttributeValue("custName", wdContext.nodeCustomer().getCustomerElementAt(leadSelected).getCname());
    node.getCurrentElement().setAttributeValue("custNo", wdContext.nodeCustomer().getCustomerElementAt(leadSelected).getCno());
    node.getCurrentElement().setAttributeValue("custSal",new Double(wdContext.nodeCustomer().getCustomerElementAt(leadSelected).getCsal()));
      int  j = node.getCurrentElement().index();
      IPublicCustomerComp.ICustomerElement custElm = wdContext.createCustomerElement();
      custElm.setCname(node.getElementAt(j).getAttributeValue("custName").toString());
      custElm.setCno(node.getElementAt(j).getAttributeValue("custNo").toString());
      custElm.setCsal(Double.parseDouble(node.getElementAt(j).getAttributeValue("custSal").toString()));
      wdContext.nodeCustomer().addElement(custElm);
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44
    Regards,
    Mithu

  • Acrobat XI Windows 7 - unable to (copy and) paste form fields to a different pdf.

    To maintain a consistent appearance and function in the forms I create for various departments, I copy a few form fields  (text, checkboxes) from an unrelated Acrobat PDF. Then I paste those fields into a different PDF document that I am making fillable.
    I do this because Acrobat does not allow setting a default for certain attributes when creating form fields, i.e. an unchecked scroll option, a default font other than Helvetica (in Acrobat 8, 9, and X). Plus it is time-saving to copy and paste fields that are the same in another PDF, like name, address, phone. etc.
    We just updated to Acrobat XI and Windows 7 and now I cannot paste copied fields onto a different PDF.
    Using "replace pages" is not applicable as I am pasting to an entirely different form and copying form fields with the settings I use. 
    Is this a glitch or is something new that was not in Acrobat 8, 9, and X?
    Also, question regarding this forum entry -  http://forums.adobe.com/message/5638333#5638333 - which is somewhat different from my current question.
    The PDF creator could not paste copied fields on other pages of the same PDF. Was this ever resolved so that copy and paste worked as it has for the last 3 versions of Acrobat?
    Thanks!
    Joanie

    Gilad:  You're right: when the fields are different, such as a checkbox and a text field, and you try to title them the same, Acrobat gives you a message. I received no messages, the field names are not the same or I missed one and Acrobat is no longer messaging about it.
    My question is different. Acrobat XI will not let me paste any field copied from a different PDF.  I've been doing that for 5 years in three different versions.  Maybe Acrobat XI has a new process for that, which I could not find in Acrobat help. Maybe it's because all forms now have extended rights automatically in Acrobat XI and there is another method to copy common fields to other PDFs.
    Any thoughts about the new Acrobat XI? It's different in many good ways, but different.
    Thanks for your ideas.

  • Problem with copying and pasting text blocks in Fireworks CS5

    Until recently when I copied and pasted a text block in Fireworks CS5, the block would retain all formatting applied to the copied text block, font, size, color, etc. Now, the pasted block reverts to some default setting. Oddly, if I copy multiple text blocks, the formatting is retained as expected, but not if I copy a single text block. I cannot find a preference that affects this, and I cannot figure out what might have changed. The current behaviour is definitely not desired, and is dramatically affecting my efficiency. Anyone experienced something similar or have any ideas how to correct this? Thanks.

    Sure, thanks for replying so quickly. My workflow is simple. My problem is limited to copying and pasting within Fireworks. I typically select an entire block with the main selection arrow but I sometimes use this one too depending on the context. I usually just use the keyboard CTRL-C then CTRL-V to paste. Previously (and I have been using FW for years, it's always been the same) it would paste an identical text block directly over the top of the copied one, and it looked exactly the same, same font, same color, etc. Now, it pastes a new block in the center of the document and all the formatting has reverted to what I guess is the default, in this case Myriad Pro 12pt. The behavior is the same no matter which arrow I use to select the text block. I tried Edit>Copy and Edit>Paste, the effect was the same. The Duplicate function seems to work as desired, but I had never noticed or tried that command before reading your post. Using the keyboard to copy/paste is such an ingrained habit I'd much prefer to continue using it as I always have instead of trying to retrain myself. (I'm old, retraining is hard!)
    (Selected block)
    (pasted block)
    Most often I copy and paste directly on the canvas, but occasionally will do it within the layers panel. Both now have the same undesired effect. I also tried creating a new document to see if it was a corruption in my current file, but the issue persisted to the new document as well.
    Thanks.

Maybe you are looking for

  • Safari crash trying to save PDF files

    Hi, I am getting some intermittent crashes lately when I try to save an opened pdf file. I am running 10.6.1 and safari 4.0.3. I have included a crash report at the end of this post, but I can't read them well enough to understand what is happening.

  • Question about mapping art to a 3d object

    I'm looking for help with mapping art to a 3d object using the extrude and bevel effect, and I keep running into the same issues. I've attached an image of what I'm trying to replicate (on the left) and where I am currently at (on the right). The lef

  • Searching icon drains the battery and freeze the BB

    after I downloaded the latest update on BB Application World two days ago, my BB (Tour) is constantly searching for something.  The battery only holds less than 2 hours.  Evey step takes forever while the searching icon (small square clock face) is s

  • Keep resetting ..Please help

    I have read some previous articles to press menu and select button at the same time to reset the iPod because my iPod mini has frozen. Apple logo showed up on the screen, however, it keep resetting. I am wondering why iPod mini is froze. It happened

  • USB over current notice and other problems

    I have a 17" MacBook Pro (original 2.16 Core Duo) that has a USB over current notice pop up. The pop up says that the USB hub it's attached to will be deactivated. I'm trying to troubleshoot it but can't figure out what's causing it. What exactly doe