Copy as a row and paste as a column

I have a column in a table.
I want to copy the values in it and paste them as a row in another table.
I have not been able to find this in the User Guide. Thanks for any help.

Hello
As the question is about values, and is about a paste process, I assume that it require only the transposition of 'dead' values, not 'living' ones.
Here is a script matching this guess :
--[SCRIPT transposea_row_or_acolumn]
Enregistrer le script en tant que Script : transposea_row_or_acolumn.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Copier une colonne ou une ligne d'une table.
Sélectionner la première cellule où vous voulez coller les valeurs transposées.
Aller au menu Scripts , choisir Numbers puis choisir transposea_row_or_acolumn
Le script transpose les valeurs copiées et les colle.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
Sous 10.6.x,
aller dans le panneau "Général" du dialogue Préférences de l'Éditeur Applescript
puis cocher la case "Afficher le menu des scripts dans la barre des menus".
--=====
Save the script as a Script: transposea_row_or_acolumn.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Copy a row or a column.
Select the first cell where you want to paste the transposed values.
Go to the Scripts Menu, choose Numbers, then choose "transposea_row_or_acolumn"
The script transpose the copied values and paste them.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
Under 10.6.x,
go to the General panel of AppleScript Editor’s Preferences dialog box
and check the “Show Script menu in menu bar” option.
--=====
Yvan KOENIG (VALLAURIS, France)
2011/01/27
--=====
on run
my activateGUIscripting()
set les_valeurs to the clipboard as text
if (count paragraphs of les_valeurs) = 1 then
we copied a row
set the clipboard to my remplace(les_valeurs, tab, return)
else
We copied a column
set the clipboard to my recolle(paragraphs of les_valeurs, tab)
end if
my raccourci("Numbers", "v", "cas") (* Paste Matching Style *)
end run
--=====
on recolle(l, d)
local oTIDs, t
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d
set t to l as text
set AppleScript's text item delimiters to oTIDs
return t
end recolle
--=====
replaces every occurences of d1 by d2 in the text t
on remplace(t, d1, d2)
local oTIDs, l
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d1
set l to text items of t
set AppleScript's text item delimiters to d2
set t to l as text
set AppleScript's text item delimiters to oTIDs
return t
end remplace
--=====
on activateGUIscripting()
(* to be sure than GUI scripting will be active *)
tell application "System Events"
if not (UI elements enabled) then set (UI elements enabled) to true
end tell
end activateGUIscripting
--=====
==== Uses GUIscripting ====
This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
on raccourci(a, t, d)
local k
tell application a to activate
tell application "System Events" to tell application process a
set frontmost to true
try
t * 1
if d is "" then
key code t
else if d is "c" then
key code t using {command down}
else if d is "a" then
key code t using {option down}
else if d is "k" then
key code t using {control down}
else if d is "s" then
key code t using {shift down}
else if d is in {"ac", "ca"} then
key code t using {command down, option down}
else if d is in {"as", "sa"} then
key code t using {shift down, option down}
else if d is in {"sc", "cs"} then
key code t using {command down, shift down}
else if d is in {"kc", "ck"} then
key code t using {command down, control down}
else if d is in {"ks", "sk"} then
key code t using {shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "k" then
key code t using {command down, shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "a" then
key code t using {command down, shift down, option down}
end if
on error
repeat with k in t
if d is "" then
keystroke (k as text)
else if d is "c" then
keystroke (k as text) using {command down}
else if d is "a" then
keystroke k using {option down}
else if d is "k" then
keystroke (k as text) using {control down}
else if d is "s" then
keystroke k using {shift down}
else if d is in {"ac", "ca"} then
keystroke (k as text) using {command down, option down}
else if d is in {"as", "sa"} then
keystroke (k as text) using {shift down, option down}
else if d is in {"sc", "cs"} then
keystroke (k as text) using {command down, shift down}
else if d is in {"kc", "ck"} then
keystroke (k as text) using {command down, control down}
else if d is in {"ks", "sk"} then
keystroke (k as text) using {shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "k" then
keystroke (k as text) using {command down, shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "a" then
keystroke (k as text) using {command down, shift down, option down}
end if
end repeat
end try
end tell
end raccourci
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) jeudi 27 janvier 2011 09:50:00

Similar Messages

  • Problems copying a row and pasting it in the following row

    Hi all,
    In a Numbers table I have 400 rows with data separated each one by a blank row
    row 2 has data
    row 3 is blank
    row 4 has data
    row 5 is blank ... and so on.
    I have prepared a small script to copy row 2 into row 3, row 4 into row 5,... as follows:
    set dName to "Conta"
    set sName to "Movis"
    set tName to "Pruebas"
    set row_ini to 2
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    set selection range to row row_ini
    repeat
    if value of first cell of selection range = 0 then
    exit repeat
    else
    tell application "System Events"
    keystroke "c" using {command down}
    keystroke return
    keystroke "v" using {command down}
    end tell
    tell first cell of the selection range to set rowNum to address of its row
    set selection range to row (rowNum + 1)
    end if
    end repeat
    end tell
    The idea is:
    1 select the initial row (in this case row 2)
    2 check if the value of first cell of the row is cero, then exit the repeat loop
    3 else
    4 copy the entire row, move down a row and paste.
    5 move to the next row
    6 repeat
    The first time I run the script it worked until the row 124 and stopped. I tried again changing the inicial row and it worked only for 7 rows. The third time it erased all the cells with data. I've tried closing both the table and the script but the problems persists: in this case it stops after replacing 5 rows.
    Where am I wrong?
    Thank you in advance
    Ratz

    KOENIG Yvan wrote:
    There is not such a book.
    There is just on short chapter dedicated to iWork in :
    Hanaan Rosenthal & Hamish Sanderson, Learn AppleScript: The Comprehensive
    Guide to Scripting and Automation on Mac OS X, Third Edition, Apress (2010);
    ISBN 978-1-4302-2361-0
    You may find useful infos in my idisk :
    <http://public.me.com/koenigyvan>
    Scan the contents of the folder :
    For_iWork:iWork '09:for_Numbers09.
    I guess the problem is for using the tell application block without telling the process Numbers.
    No, I had to change a lot of things.
    the name of the document was wrong (at least on my machine on which I always use the name extension.
    set selection range … was wrong.
    Yvan KOENIG (VALLAURIS, France) dimanche 20 février 2011 23:02:35
    Thank you.
    Visiting your idisk I realise how much work I must do to become a decent scripter!
    The book you mention looks interesting. I'm going to include it in my bookcase (and read it, of course).
    Ratz

  • Help writing a excel macro to do a copy of 4 cells and paste transpose. I need to loop the copy and paste through 6900 rows of data.

      I need help writing a excelmacro to do a copy of 4 cells and paste transpose.  I need to loop the copy and paste through 6900 rows of data.  I started the macro with two rounds of copying & paster transposed but I need help getting it
    to loop through all rows.  Here is what macro looks like now.
        Range("I2:I5").Select
        Application.CutCopyMode = False
        Selection.Copy
        Range("J2").Select
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
        Range("I6:I9").Select
        Application.CutCopyMode = False
        Selection.Copy
        Range("J6").Select
        Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
            False, Transpose:=True
    End Sub

    Thanks Jim for the solution above.
    Hi Brogents,
    Thanks for posting in our forum. Please note that this forum focuses on questions and feedback for Microsoft Office client. For any
    VBA/Macro related issues, I would suggest you to post in the forum of
    Excel for Developers, where you can get more experienced responses:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • When I copy an email message and paste it into a document, the font turns into all symbols.  What's the problem here?

    When I copy an email message and paste it into a document, the font becomes all symbols. What is wrong?

    To use images from the media browser, you must generate previews of the images first. It sounds like the "automatically generate previews for every new project" is turned off under Aperture >Preferences>Previews. To generate a preview for a photo to use in the media browser, right click it and select "update preview". The quality of the preview photo is determined by the settings in the Previews tab found under the Aperture>Preferences menu.

  • How do I copy a Keynote slide and paste it into a new project?

    Running MacBook Pro OSX 10.9.5
    Keynote v. 6.2.2
    How do I copy a Keynote slide and paste it into a new project?
    jazzpsy

    open the first Keynote
    in the navigator panel, click on the slide to be copied to select
    command C to copy
    open the second Keynote
    in the navigator panel, click the slide before where you want the slide to paste, command V to paste

  • Copying data from excel(more than one row) and pasting into table control

    I have a requirement to copy data from excel and have it pasted it into the corresponding fields table control when the user clicks on an icon.For the first part I used a class to copy it from the clip board.By the previous process,I get the data inside an internal table, but even after  trying to split the data using 'split at cl_abap_char_utilities=>horizontal_tab into table itab.' it's not working.The table and the excel file are of the same structure.
    Does anyone know any cause as to why it might not work?Is there any other way to achieve my objective?
    Bon

    Hi,
    try to get data into internal table as below
    TYPES :     BEGIN     OF             ty_data          ,
                zbukr     TYPE           payr-zbukr       ,
                hbkid     TYPE           payr-hbkid       ,
                hktid     TYPE           payr-hktid       ,
                rzawe     TYPE           payr-rzawe       ,
                chect     TYPE           payr-chect       ,
                laufd     TYPE           reguh-laufd      ,
                laufi     TYPE           reguh-laufi      ,
                lifnr     TYPE           reguh-lifnr      ,
                vblnr     TYPE           reguh-vblnr      ,
                rwbtr     TYPE           reguh-rwbtr      ,    "uncommented
                unique_no TYPE           char13           ,   " Added SAP Doc. No. and current year concate in NEFT,RTGS and Fund Transfer cases
                END       OF             ty_data          .
    DATA :      wa_file   LIKE LINE OF   it_file          ,
                wa_data   TYPE           ty_data          .
    DATA:      it_data1 TYPE              kcde_intern WITH HEADER LINE,
               wa_data1 LIKE LINE OF      it_data1.
    start-of-selection.
    CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
          EXPORTING
            filename                = lv_file1
            i_begin_col             = '1'
            i_begin_row             = '4'
            i_end_col               = '11'
            i_end_row               = '60000'
          TABLES
            intern                  = it_data1
          EXCEPTIONS
            inconsistent_parameters = 1
            upload_ole              = 2
            OTHERS                  = 3.
        IF sy-subrc = 0.
          PERFORM format_data.
        ENDIF.
    FORM format_data.
      DATA : ld_index TYPE i.
      FIELD-SYMBOLS : <fs>.
      DATA it_tab LIKE wa_data OCCURS 0 WITH HEADER LINE.
          LOOP AT it_data1.
            MOVE it_data1-col TO ld_index.
            ASSIGN COMPONENT ld_index OF STRUCTURE
            it_tab TO <fs>.
            MOVE : it_data1-value TO <fs>.
        MOVE it_data1-value TO p_table.
            AT END OF row.
              APPEND it_tab.
              CLEAR it_tab.
            ENDAT.
          ENDLOOP.
           it_data[] = it_tab[] .
        ENDIF.
    endform.                    "format_data

  • In adobe pse and nikon nx2, I open 2 images, select in 1 a head, copy, open image 2 and paste, than only the outlines of the selection apears but no head. who knows this problem?

    in adobe PSE and in Nion NX2, I open 2 group Photos, select a head in photo 1 and copy, go to photo 2 and paste. Than only the selection-line
    appears and no head is visible! Who can tell me what is going wrong? Thanks: Max.

    I am sorry to have to point out to you that you have changed SpryMenuBasicSkin.css so much that it is impossible to render any assistance.
    To start with, the menubar has an ID of MenuBar, yet in the CSS I only see this referenced as a CLASS as in
    .MenuBar  {
    background-color:#cccccc;
    font-family: Arial, Helvetica, sans-serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
    MenuItem, and MenuItemLabel
    at a given level all use same definition for ems.
    Note that this means the size is also inherited to child submenus,
    so use caution in using relative sizes other than
    100% on submenu fonts. */
    font-weight: normal;
    font-size: 16px;
    font-style: normal;
    padding:0;
    border-color: #ffffff #ffffff #ffffff #ffffff;
    border-width:0px;
    border-style: none none none none;
    I would suggest to start again.
    Once you have done that, supply a link to your site and we will assist you further.
    Gramps

  • Problems when i copy text from Pdf and paste on Word

    In Pdf documente the text is in perfect conditions, but, when i copy the text and paste in WORD document the character change into random crazy character like: "()*"*&!(!*"(!"(!)"( )*"()!*("!&("@*")(!*@"!*@(
    how i fix this??

    I have the same problem when copying the PDF into a Word file. I tried Save as RTF doc. and it is still just symbols.
    It could be a font problem, because it has some weird Gill Sans and Futura fonts. I am sending a picture as an example.
    The option of exporting as Tiff and then applying OCR is interesting but still is kind of slow when i have a 100 pages document. If the fonts is the problem is there any way i could select the whole text and apply it a known font like Arial?
    Thanks for any info!
    Cheers,
    Sebastian

  • How can I copy text from Pages and paste as Unicode?

    I notice that if I write a Pages document on my iMac (this is Pages 09 running under OSX Mavericks 10.9.1) and copy text that contains characters from the "Mac Roman" character set (like the Greek letter pi for example, and some other mathematical symbols), if I paste it into a text file on a PC (I'm running the Mac with Windows via Parallels), then these characters don't show up correctly. If they were copied as Unicode characters then I don't think the problem would exist. I thought that Pages used Unicode, but it doesn't apparently apply to stuff that gets onto the Mac clipboard. I do know that if I export a whole Pages document it is possible for it to be exported in Unicode, but I just want to copy small bits of text like mathematical formulae and paste them into Unicode-compliant applications. Is this possible? There's nothing in the Pages Preferences to suggest that it is. Is there any solution to this?
    TIA

    Tom, I'm sorry I think I have wasted your time. My initial experiments seemed to show that what I was trying to do didn't work, but now it all seems to work. No idea why. I think there is a problem somewhere, but not where I thought it was. I think what may be happening is that when the Mac clipboard sees some Mac Roman text, it converts and stores it in Unicode form, so things work as long as the receiving app is Unicode aware - or Parallels is doing the job for me, or Pages is. Good if this is true. The only issue then would be that, if a program for the PC is looking for characters by their encodings, it will have to use the Unicode ones to find things, whereas the equivalent code on a Mac will have to look for the Mac Roman encodings as well as Unicode.
    Just to explain, I am not using a specialised mathematical formula editor, but I do expect my user to use the math symbols easily accessible on the Mac keyboard, particularly the Greek letter pi (lower case), division sign, less than or equal to, greater than or equal to, square root. The user can type text directly or paste it in from another application. On the PC side I am not using Microsoft Word but a program I'm developing that can create fields into which I can put text, similar I suppose to NotePad. Just to be able to be cross-platform, I expect users to use the built-in Windows Character Viewer or similar to make the same symbols accessible as in the Mac version.
    If everyone was using Unicode the problem (if there is one) wouldn't exist.
    I may well come back with a similar issue in the future, but my original issue, although the description was given in good faith, seems to be wrong. So I'm saying the problem is solved.

  • Copying from one arrangement and pasting into another arrangement

    Hi, I'm using Logic Express 8.
    I'm wondering if there is a way to copy several tracks from one arrangement window into another. I've tried to do this simply by copying and pasting, but when I paste into the new arrangement window I get error messages and the tracks pasted into the new window have a speaker icon with an "X" through it - and obviously no sound.
    Am I missing something, or perhaps this is simply a limitation that exists with using express instead of pro?
    Thanks a lot.

    You can do this by simply importing the data from one project to your new one. Check it out here.

  • How do I copy a PDF document and paste to online job application?

    I have a resume in a PDF file. I'm trying to copy and paste it to an online job application. I'm not very computer savvy, could you give me detailed directions how to get it done? PLEASE

    Okay, hope I can help.
    * Open up PDF file
    * Select the text using the built in computer tool
    * Right click and select copy
    * Find where you insert the text for your resume and right click again then select paste

  • Copy text from PDF and paste to imessage

    Before iOS7 I would be able to copy text from a PDF file and paste it normally into a text message or imessage.  Now when doing the same thing it doesn't paste the actual text I copied, but it pastes as an html attachment.  Have I changed a setting or is this just a bug that needs to be fixed?  Please help.

    I get the PDF in an email and open to view it.  Not sure what the pdf opens in automatically, but that is the way I've been doing it since I've had the iphone 4 and haven't had issues until ios7. 
    I just now tried to opened a file in the default view and then switched it to open in Adobe reader and I can copy and paste normally.  So now i have to do an extra step all the time?

  • Applescript to copy cells from excel and paste into numbers

    Hi  community!  I find myself needing your assistance once again.  I'm new to applescript and it's my first scripting language.  I'm trying to create a script that will copy a block of cells in an excel spreadsheet with multiple sheets and paste that info  (preferably with a keystroke) into a numbers template.  I've written a successful script to activate Excel, go to the sheet with the info, copy it, then open a Numbers template from My Templates.  The problem I can't solve on my own is how to select the right cell on the right table on the right sheet and Paste and Match Style.
    Some helpful info:
    -I've changed my [Command+V] keystroke in Numbers to "Paste and Match Style" because this is a very common action for me
    -The Numbers template is pretty big, but does open on the correct sheet for the paste
    Here's what I have so far: (sorry for the center justification, but it wasn't displaying correctly)
    tell application "Microsoft Excel"
      activate
      set myActiveWook to "OG3.9.xls"
      select worksheet "Blank1"
      select range "E8:E32" of worksheet "Blank1"
      tell application "System Events" to keystroke "c" using command down
      tell application "Microsoft Excel"
      select worksheet "Inputs"
      end tell
      tell application "Numbers"
      activate
      set the templatenames to the name of every template
      set thistemplatename to "PQ10a" as string
      make new document with properties ¬
      {document template:template "PQ10a"}
      end tell
    end tell
    From here I was trying this, but couldn't get it to work.  it would paste the data the first time into the script editor, then in the middle of the template if run a second time. 
    tell application "Numbers"
      activate
      set the templatenames to the name of every template
      set thistemplatename to "PQ10a" as string
      make new document with properties ¬
      {document template:template "PQ10a"}
      tell table "10" of sheet "INPUTS" of document 1
      set selectrange to cell "B2"
      tell application "System Events" to keystroke "v" using command down
      end tell
    end tell
    +
    Thank you in advance for your help. 
    Ash

    Hey Priya,
    The best way to do this would be by utilising the Excel Import Wizard. These help files provide a thorough explanation into their use: 
    http://zone.ni.com/reference/en-XX/help/370859J-01/gfsexcel/gfsexcel/dlgexcimp1_dialog/
    http://zone.ni.com/reference/en-XX/help/370859J-01/gfsexcel/gfsexcel/dlgexcimp2_dialog/
    If you're interested in doing this programatically, this knowledge base article goes through that as well:
    http://digital.ni.com/public.nsf/allkb/C9423530C340B77386256F5E0048F369?OpenDocument
    Kind Regards,
    Shalimar Ali
    Applications Engineering Intern

  • How do I copy an email link and paste it into my email?

    Just got a hand-me-down MacBook Pro. I need to send an email to someone who's posted an ad on Craigslist. How do I, a) copy the link for their email; and, b) paste it into the address field of my Outlook mail?
    If I just click on the email link in CL, the computer wants to direct me to some default email client, which I'm not using. So I want to copy and paste the address.
    Thanks.

    Care to share which OS you are using?
    From the OS Help menu:
    Copy from one document to another
    Open both documents, select the text, picture, or movie you want to copy, and then drag it to the other document.
    If you can’t drag an item from a document window, select the item and choose Edit > Copy. Then click in the other document window and choose Edit > Paste.

  • Can you NOT copy an Amerture image and paste it into keynote?

    I'm able to highlight an image in iPhoto, copy it, and paste it into another Mac app like keynote no problem. But my trial version of Aperture doesn't allow me to do that. How come?
    Yes, I should be able to drag the image into a Mac app, but often they get out of sync and the recent image I've imported into iphoto is not available for dragging. So I just copy and paste it.
    But what's up with Aperture in this area?

    To use images from the media browser, you must generate previews of the images first. It sounds like the "automatically generate previews for every new project" is turned off under Aperture >Preferences>Previews. To generate a preview for a photo to use in the media browser, right click it and select "update preview". The quality of the preview photo is determined by the settings in the Previews tab found under the Aperture>Preferences menu.

Maybe you are looking for

  • OWB 1gr2 process flow - how to pass IN parameters to a procedure

    Hi, In OWB 10.1 processflow the IN parameters for the procedure in can be passed in the activity view which appears on selecting the procedure in the processflow. How to enter the IN parameters in case of OWB11gr2. In property Inspector no options ar

  • Can i use the iphone 4 that i bought in th UK in other countries??

    i recently bought an Iphone 4 from Apple store. i was just wondering whether i can use this phone permanently in my country(Brunei Darussalam). Will there be any problem with the network or internet settings?? Anyone can answer me this?? thanks a lot

  • Wine-Metastock, dotnet, IE6, and MSJVM

    I need windows for a software called metastock and iE6 with MSJVM. To install that, i got wine. Actualy, metastock depends on dotnet and dotnet depends on IE6. So, i first started with ie6 and tried installing it with "wine ie6setup.exe" and then usi

  • Firefox won't let me access a website. How do I change that?

    I can access the website itself, bu t where there should be 2 blanks to enter my ID and PW, there is just a large Firefox window saying Firefox says this is an untrusted site!! How do I change that and allow myself access to this site? Thank you for

  • Strange wait events

    Hi! I found strange thing: In my trace file i do see "#1 Wait db seqental read..." and this strings do appearing very slowly :( but my process eating 100% CPU and low io load. Ok, i do strace -o my_server_pid and see a tons of select(1024,......) tim