Active X control of clipboard excel to word

I have produced some complicated XY plots in excel using spectrum data from labview, and I have produced much of a word document from the same labview program. I want to know how to extract my plots from excel (on specific worksheets) and place them at specific bookmarks in the word doc - programatically from labview. At present I have to manually copy them from excel and paste them into word. I understand Active X controls should do it, but I dont yet know how to do this.
Can anyone provide some examples please?
Thanks
Fred Engel

Fred,
Here's an example of a function that I used in a project a while back.  I hope it meets your needs or at least gets you moving in the right direction.
John M
Attachments:
XL2Word.zip ‏27 KB

Similar Messages

  • How to use active X controls to read/write protect an excel or word document created by created by Save Report to File VI

    Hi all,
    I'm trying to creat a word and excel documents using Save Report to File VI. When wiring a password to this last VI, the document created are only protected against writing but not reading. How can I use active X controls to password protect these documents against reading?
    Thanks a bunch!
    O

    There is no predefined functionality available in LabVIEW. So you have to implement this on your own.
    It seems to me that you own the Office Report Generation Toolkit. You can use the Excel Get ActiveX References.vi from the Excel Specific >> Advanced palette to get access to the "generic" ActiveX Excel references. Starting from this point, you can use property and invoke nodes to get to the setting you are going to modify.
    Please refer to this link for information on Excel password protection. I have not searched for the object giving you access to those settings though....
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Active X controls in Excel 365 stopped working

    After today's Windows update and re-boot, I am no longer able to drop an Active X control on a sheet or even access existing controls' properties. Underlying VBA code works as do macros and form controls.
    Anybody else seeing this?

    Hi Antene88,
    >>Is there the same problem with office 2013? I still would have to do my updates when I shut down.<<
    Yes, as far as I test the issue occurred in Office 2013 too. Here is a workaround provided by other community:
    First:
    Start Windows Explorer.
    Select your system drive (usually C:)
    Use the Search box to search for *.exd
    Delete all the files it finds.
    Start Excel again.
    Second:
    In this file you can find this line:
    @del "C:\Documents and Settings\%USERNAME%\Application Data\Microsoft\Forms\*.exd" /s
    @del "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Forms\*.exd" /s
    @del "C:\Users\%USERNAME%\AppData\Local\Temp\Excel8.0\*.exd" /s
    @del "C:\Users\%USERNAME%\AppData\Local\Temp\VBE\*.exd" /s
     @del "C:\Users\%USERNAME%\AppData\Local\Temp\Word8.0\*.exd" /s
    Also we have reported this problem and will keep you updated once there's any progress.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem with controlling Annotations from Excel VBA

    Hi,
    I have a PDF document that has plenty of sticky notes attached to it. These sticky notes have been added by multiple authors on all pages of the document. I am trying to import the contents of these sticky notes, their author and the page number to an excel spreadsheet.  I am using Excel 2007 and Acrobat Professional 9.0.
    This is the code that I am currently using to import the sticky notes, but the problem that I am facing is that when I run the macro -
    Same sticky note contents, author and page numbers are imported multiple times
    Not all sticky notes are imported, only some of them appear in the final excel spreadsheet
    When I compare the number of sticky notes to that in the original PDF file, the number is correct. But the content is repeated content and that is the reason why only some of the sticky notes are imported.
    This is an activity that I need to do on regular basis and the number of sticky notes that I need to import to excel may range between 100 to 200. It is really difficult to do this task manually, so an excel VBA macro could prove really helpful.
    Sub ImportComments_Click()
    Dim Fpath As String
    Dim WordObj As Object
    Dim wbkOutput As Excel.Workbook
    Dim iRow As Integer
    Dim i, j, k As Integer
    Dim lRet As Long
    Dim objAcroAVDoc As New Acrobat.acroAVDoc
    Dim objAcroPDDoc As Acrobat.AcroPDDoc
    Dim numPages As Long
    Dim lAnnotscnt As Long
    Dim Subtype As String
    Dim NumComments As Long
    Dim AcroApp As Acrobat.AcroApp
    Dim objAcroPDPage As Acrobat.AcroPDPage
    Dim annot As Acrobat.AcroPDAnnot
    Sheets("Defect Log").Select
    Range("L3").Activate
    Fpath = ActiveCell.Value
    Sheets("Defect Log").Select
    Range("A1").Activate
    i = 0
    Do While (Not (IsEmpty(ActiveCell.Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 1).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 2).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 3).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 4).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 5).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 6).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 7).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 8).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 9).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 10).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 11).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 12).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 13).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 14).Value)))
    i = i + 1
    ActiveCell.Offset(1, 0).Select
    Loop
    iRow = i + 1
    Set wbkOutput = ActiveWorkbook
    lRet = objAcroAVDoc.Open(Fpath, "")
    Set objAcroPDDoc = objAcroAVDoc.GetPDDoc
    numPages = objAcroPDDoc.GetNumPages()
    Set objAcroPDPage = objAcroPDDoc.AcquirePage(0)
    For k = 1 To numPages
    lAnnotscnt = objAcroPDPage.GetNumAnnots()
    For m = 0 To lAnnotscnt - 1
    If lAnnotscnt = 0 Then Exit For
    Set objAcroPDAnnot = objAcroPDPage.GetAnnot(m)
    If (objAcroPDAnnot.GetContents <> "" And objAcroPDAnnot.GetSubtype = "Text") Then
    Cells(iRow, 5).Value = k
    Cells(iRow, 2).Value = objAcroPDAnnot.GetContents()
    Cells(iRow, 11).Value = objAcroPDAnnot.GetTitle()
    iRow = iRow + 1
    End If
    Next m
    Set objAcroPDPage = objAcroPDDoc.AcquirePage(k)
    Next k
    lRet = objAcroAVDoc.Close(1)
    Set objAcroAVDoc = Nothing
    Set objAcroPDAnnot = Nothing
    Set objAcroPDPage = Nothing
    Set objAcroPDDoc = Nothing
    End Sub

    Make sure you are current with 9.x patches, just on general principles.
    The code seems fine – nothing jumping out at me.
    You can also look at using the JSObject methods and trying this via the JavaScript stuff – that will give you more access to the Annotation information…
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 24 Nov 2011 04:25:12 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Problem with controlling Annotations from Excel VBA
    Problem with controlling Annotations from Excel VBA
    created by apreeti<http://forums.adobe.com/people/apreeti> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4044740#4044740

  • Making and running excel or word macros

    i would like to make a excel or word macro and run it in labview, but
    i don´t want to run without view the code directly in labview because
    i will need to modify the code in order to do differents things
    depending of the choose that i can make when the program it´s running
    so the answer is: how can i see the macro code in labview in and excel
    or word application and how to run it?
    don´t answer the solution it´s easymacro.com, couse i am a student and
    i need to see the diagram in order to learn
    thanks!

    I think ActiveX is what you need, but you'll have to elaborate a bit to modify and run macros. Look at the examples shipped with LabVIEW about controlling Excel, and see how those work. After that, you'll see that almost anything can be done using ActiveX.
    Good luck

  • When updating to 8.5.1. from 8.5., the excel and word toolbox vi's are gone

    I updated from 8.5 to 8.5.1 and now my vi's with excel and word sub vi's do not work.  I re-installed the toolbox for Microsoft office and this did not help. 
    How can I get the excel and word sub vi's to work?
    Mark
    metzler CLAD

    I tried uninstalling lv 8.5.1. through the control panel, add/remove programs.  I only uninstalled lv 8.5.1. and not all the other programs.  Once re-installed, the functions palette still shows no word or excel sub vi's. 
    Did you uninstall all of the labview programs and toolbox, or just labview 8.5.1?
    Thanks,
    Mark
    metzler CLAD

  • When i click on an excel or word file in 2007 the program begins to open but then an error message says There was a problem sending the command to the program

    when i click on an excel or word file in 2007 the program begins to open but then an error message says There was a problem sending the command to the program.
    i am using office2007  with windows7 premium home edition.  i have checked file associations., all DDE settings. i have even tried this in safe mode. the same thing happens. please note once i see the error. i can then go back to the file click on
    it a second time and it WILL open. AND i can open any file if i open excel and and find the file from there. i uninstalled and re-installed office 2007 from scratch. And i checked the compatibility mode (all un-checked) still the problem persisits. this is
    a real PITA.   anyone have any solution for this? Thanks 
    ken yanow

    Hi,
    Have you try to un-select the Ignore other applications that use Dynamic Data Exchange (DDE) setting?
    Click the Microsoft Office Button, and then click Excel Options.
    Click Advanced, and then click to clear the Ignore other applications that use Dynamic Data Exchange (DDE)
    check box in the General area.
    Click OK.
    If the problem cannot resolve, the Run as administrator may selected.
    Go to Office default install location: C:\Program Files\Microsoft Office\Office12.
    Right-click EXCEL.EXE > Properties >
    Compatibility tab.
    Under Privilege Level, uncheck Run this program as an administrator
    check box.
    Best regards.
    William Zhou
    TechNet Community Support

  • How can I display Excel using Word VSTO Addin.

    Hi all.
    I am a beginner.
    And studying Word VSTO ribbon addins.
    I wrote very simple one (works charm );   
    Microsoft.Office.Interop.Word.Application  oAPP  =  Globals.ThisAddIn.Application;
    oAPP.Selection.InsertAfter( " Hello, Word !! " );        
    oAPP.Selection.Collapse();
    Now, I have to go on.
    I want to display "Hello, Excel !! " from the same addin (from the Word Addin)
    I tried to port the following VBA codes (into Word Addin);
        Set oEXCEL = CreateObject("Excel.Application")
        Set oWBOOK = oEXCEL.Workbooks.Add
        oWBOOK.ActiveSheet.Range("A1").Value = " Hello, Excel !! "
        oEXCEL.Visible = True
    I do not know how to start from the very beginning.
    I can not make "Application (for excel)" object at all.
    VS says, the "Application" is not for the Excel but for the Word.
    Yes, everybody know it. But, Excel has the same one too. So I tried to make casting. It never works.
    I added required reference(s).
    Wht do I have to do ?
    Is it impossible, naturally ?
    Regards

    Hello,
    The
    How to automate Microsoft Excel from Microsoft Visual C#.NET  article describes all the required steps for automating Excel from any other application.
    Anyway, the current forum is for VSTO specific questions. I'd suggest asking Excel or Word specific questions on the
    Excel for Developers or
    Word for Developers forums instead.

  • I have subscribed to convert PDF to Excel and Word, I have followed your instructions and I get an error message all the time.

    I have subscribed to convert PDF file to an Excel or Word . I have followed your instructions to do so but I always get an error message. I have chated with one representative who suggested that I wait 24h before I try it again implying that my subscription is in process. the time span has elapsed and when i try it, I still get the error message. HELP ME or REFUND me the money

    "an error message" really doesn't tell us much.
    [topic moved to ExportPDF forum]

  • How can I download excel and word

    I need work in excel and word in my iPed - please guide

    You cannot download or install Word or Excel for the iPad. MS has not released an iOS version.
    There are MS Office compatible apps available in the app store like Quick Office Pro and Documents to Go. Take a look at those and see what you think. Apple also has their iWorks suite of apps, Pages, Numbers and Keynote that are compatible with the MS Office apps.

  • How can I use excel and word on the IPAD2

    How can I use excel and word documents on my Ipad 2

    There are apps such as Documents To Go which support reading/editting/creating those sorts of documents :
    standard version  -  http://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
    premium version  -  http://itunes.apple.com/us/app/documents-to-go-premium-office/id317107309?mt=8

  • Can i use other application on ipad such as microsoft excel or word? how?

    can i use other application on ipad such as microsoft excel or word? how?

    'Normal' PC and Mac (OS X) software do not work on the iPad (iOS), they are different operating systems. You can only install apps from the iTunes App Store on your computer or the App Store app directly on your iPad.
    Numbers (http://itunes.apple.com/us/app/numbers/id361304891?mt=8) and Pages (http://itunes.apple.com/us/app/pages/id361309726?mt=8) are two options, as are third-party apps such as Documents To Go :
    'normal' version : http://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
    premium version : http://itunes.apple.com/us/app/documents-to-go-premium-office/id317107309?mt=8

  • Is it possible to export the "Mediathek" in a data file (excel or word) ?

    Is it possible to export the "Mediathek" in a data file (excel or word) ?

    see my old post:
    https://discussions.apple.com/message/6272619?messageID=6272619#6272619?messageI D=6272619

  • DCOM error "1260" on Windows 2008 R2 terminal server when SAP exports data into Office 2007 (Excel or Word)

    Hi all,
    We are experiencing an issue which happens at random whenever a user tries to export data from SAP into Excel or Word.  Excel or Word is started but remain empty.  We then see the below errors in the event log.  And the problem is very random
    as sometimes all they have to do is wait 10 minutes and the next try will be successful.  Not even log off/on.  Could someone tell me what the error "1260" is saying?     thanks for your help.
    Pete
    Log Name:      System
    Source:        Microsoft-Windows-DistributedCOM
    Date:          7/23/2013 4:07:36 PM
    Event ID:      10000
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Servername.domain.com
    Description:
    Unable to start a DCOM Server: {00020906-0000-0000-C000-000000000046}. The error:
    "1260"
    Happened while starting this command:
    "C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE" -Embedding
    Log Name:      System
    Source:        Microsoft-Windows-DistributedCOM
    Date:          7/23/2013 3:54:34 PM
    Event ID:      10000
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Servername.domain.com
    Description:
    Unable to start a DCOM Server: {00024500-0000-0000-C000-000000000046}. The error:
    "1260"
    Happened while starting this command:
    "C:\Program Files (x86)\Microsoft Office\Office12\EXCEL.EXE" /automation -Embedding

    Hi,
    Based on my research, please try the following:
    Click Start, click Run, type regedit in the Open box, and then click OK.
    Locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\termsrv
    Under this subkey, add the following registry entries:
    Name
    Type
    Value data
    Logoff
    REG_SZ
    TSEventLogoff
    Logon
    REG_SZ
    TSEventLogon
    Restart the Terminal Server computer.
    Note: Serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry
    before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, please refer to
    How to back up and restore the registry in Windows.
    Hope this helps.
    Best Regards
    Jeremy Wu

  • After updating my iMac to 10.9.2 it has deleted my excel and word, plus I can no longer connect my Epson printer, I can't even reload it with the disc, how can I fix this?

    We updated our computer a while back to 10.9.2, but once it was complete we no longer use excel or word as the files were missing for them, plus our epson printer wouldn't work, it said something like the files for this printer could not be found, we tried to reload the printer using the disc as the printer was less than a year old but the computer would not load it probably, I called epson and they replied that there was a problem with the update and has done something to the mac driver, has anyone else had a problem with this update? and can it be sorted

    Don't use the CD--it is almost always out of date. Just add the printer using Print & Scan System Prefs and it should find the correct drivers.
    If not, go to the Epson website and download the current ones.
    If you need the bundled software that comes on the CD, download it from Epson.
    What version of Office was it? 2004 won't run on any OS after 10.6.  Office 2008 and 2011 will run.
    However, it should not have deleted any of your Documents.
    If it was Office 2008 or 2011, try reinstalling it. I've found that Microsoft products have a hard time with change. It's like when you remove the pagoda from a goldfish bowl. To the goldfish, the world around them has changed and they freak out. Sometimes you can calm down the Microsoft products by reinstalling them.

Maybe you are looking for

  • ITunes 11 Changing ID3 Tags

    Ok, I've been using iTunes for years and like many I've found the new version, 11, to be frustrating. The main thing is ID3 Tags. These have always been customiseable. For someone OCD like me, being able to edit and customise ID3 tags is very importa

  • Quantity and Value consumption for Packaging Materials

    Dear Experts, My client having retails stores all over India and there is problem in packaging materials consumption. Now we are followed below mentioned process. We have created STO supplying site is ABC to receiving site is 9999.After PGI the same

  • How will use Select-Options in Read table Concept.

    Hi All,               How will use Select-Options in Read table. For  example,       Select-Options : test for bseg-prctr.        Select * from bseg into table ITAB. Read table ITAB with key prctr in test. Last line is showing error. If any way to re

  • Color don't work well in Mac book pro 13"  and monitor flash sometimes? Please help me!

    Color don't work well in Mac book pro 13"  and monitor flash sometimes? Please help me!

  • Problem with video playback in adobe premiere pro CS4

    Whevener i am to put something into my video. Via it be either A fraps recorded video or a video shot by my camera... i put it in the library and drag it to the stage. then when i play it in Premiere the video just stays as a still picture but the au