I have problem with running excel macro in report generation tool kit

I am trying to use Excel Run Macro.vi but run into a problem: Exception occured in Microsoft Excel, The macro 'personal.xls!Macro1' cannot be found.. Help Path is C:\Program Files\Microsoft Office\Office\1033\xlmain9.chm and context 0 in Excel Run Macro.vi->example.vi
Also I tried to save the macro under the file that is active and I get the same results.
I saved the macro as *.bas file and ran it using Excel Import Module and did not see any erreos and it did not do anything.
Where a re some god examples that use the excel marco feature using the new report generation vis?

masoud,
Try this example out and let me know if you have any more questions. Also, this is in LabVIEW 6.1 format. If you need it in a different format, please let me know.
Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
Attachments:
Module1.bas ‏1 KB
TestAddMacro.vi ‏34 KB

Similar Messages

  • Problem writing to excel file using report generation toolkit

    hello everyone, i have this report generation toolkit... and i want to output DAQmx Analog I/P data on to an excel sheet. the DAQmx is programmed to collect 
    data at 3samples/sec. however, when i see the excel file that Report Generation Toolkit generates, the time stamp is updated every second instead of every 0.33sec. 
    can anyone please help me?  i am using the MS Office Report Express VI. 
    Now on LabVIEW 10.0 on Win7

    @All, I got rid of the express VI, decided to work on the custom low level VIs instead. however, i have a new problem now... 
    I have a case statement wherein, the user selects if he wants to start generating a report. once the program enters tat loop, the program speed reduces! 
    can anyone please tell me why is it happening? i ahve attached the vi... also another question.. in this VI, i am capturing the unwanted data into the graph as I am indexin the graph input. how can i make a logic 
    that the graph captures the data only when I am switching the CREATE REPORT button (which is in the while loop). is there a way that I can append the data to the graph without creating a new graph every iteration? please let me know
    thanks
    Now on LabVIEW 10.0 on Win7
    Attachments:
    Untitled 7.vi ‏75 KB
    Untitled 7.JPG ‏99 KB

  • Report Generation tool kit for MS office (Opening an existing excel file and appending to the bottom)

    I don't have any problems creating and filling an excel sheet with data. I use the New Report.vi, Easy Title.vi, and Easy Text.vi to create the file. I then save and dispose properly.
    What I don't seem to be able to do is open the exsting file and append data to the end of the sheet.
    Thanks in advance for your help.
    todd

    Hi Todd,
    You can do this by creating a new Excel report with the existing excel file path wired to the "template" input. Then use "Excel Get Last Row.vi" (located under Report Generation\Excel Specific\Excel General) to obtain the location of the last row. Then use that location to input new data into the file.
    Hope this helps,
    Dan

  • Hi i have installed report generation tool kit but i am unable to find a function

    hi,
    I have installed report generation toolkit full version and i have few example programms in which a function named generate report get data to modify.vi been used but i am unable to find a function pallet called  Generate Report get data to modify.vi in my function list and when ever i try to RUN this example programm i get an error saying this function is not executable if i go inside that function again its showing the same error inside that function saying its not executable if any one knows about this VI pls help me
    regards
    narayan 

    hi,
    i have tried your method by going into
    resorces i have opened the VI s there its not showing any error but how
    to open same vi or call that VI  while i am programming how i can
    search those functions in my function  pallet and i have a previously
    written prog in LABVIEW 8 VERSION where he has used this functions and
    he has made some SUB VIS using those functions and some of the contents
    VI S of resorce he has put it in a folder so every time when i try to
    open this VI  it says dependncie issue it is trying to access the VI
    FROM RESORCE AS WELL HAS FROM THE FOLDER WHERE PREVIOUSLY STORED HOW TO
    SOLVE THIS PROBLE PLEASE HELP IF ANY ONE HAS SOLLUTION FOR THIS
    REGARDS
    NARAYAN

  • Problems with running excel addins

    Hi,
    I use ActiveX to store measurement data aquired from LV in an Excel
    spreadsheet, which works fine so far. In one of the data columns though
    I wanna use an Excel Addin to automatically calculate and update the
    values.
    However, opening the Excel spreadsheet from LV does not start up the
    AddIn at all, though it works correctly whenever I start up Excel
    manually.
    I realised there's an object AddIn in the property node of
    "_Excel.Application" and I can invoke a method "Add Excel.AddIns",
    which has a file name as an input. I tried to connect the
    AddIn-Filename *.xla to that input which results in an error message:
    Error -2146827284 occurred at Exception occured in Microsoft Office
    Excel, Die Add-Methode des AddIns-Objektes konnte nicht ausgeführt
    werden
    (translated: Add method of the AddIn-object could not be executed)
    How do I start up the AddIn correctly? Im a newbie with AcvtiveX and
    grateful for any easy to understand support on that issue. Can anyone
    recommend me some useful literature to learn more about ActiveX?
    Thanks for your help...

    Hi r_keller,
    could you tell me a little bit more about your application? Which AddIn do you wanna use? What do wanna calculate?
    Here is a link regarding ActiveX:
    http://msdn2.microsoft.com/en-us/library/default.aspx
    Go to (from the menu to the left):
    Office Developement >> Microsoft Office 2003 >> Office 2003 >> VBA Language Reference >> Microsoft Excel Visual Basic Reference >> Reference >> Properties/Methods.
    Maybe you wanna install the Office Help, as well.
    Location of ActiveX Object Model Documentation for Microsoft Office:
    http://digital.ni.com/public.nsf/allkb/29CDE4332C4E6A27862570AE006ECBF4?OpenDocument
    Here is the documentation regarding AddIn from the Office Help:
    AddIns Property
    See AlsoApplies ToExampleSpecifics
    Returns an AddIns collection that represents all the add-ins listed in the Add-Ins dialog box (Tools menu). Read-only.
    For information about returning a single member of a collection, see Returning an Object from a Collection.
    Remarks
    Using this method without an object qualifier is equivalent to Application.Addins.
    Example
    This example displays the status of the Analysis ToolPak add-in. Note that the string used as the index to the AddIns collection is the title of the add-in, not the add-in’s file name.
    If AddIns("Analysis ToolPak").Installed = True Then
        MsgBox "Analysis ToolPak add-in is installed"
    Else
        MsgBox "Analysis ToolPak add-in is not installed"
    End If
    Is that what you wanna do?
    Bye
    Daniel
    NIG

  • Problem with running the midlet class (Error with Installation suite )

    hi everyone...
    i have problem with running the midlet class(BluetoothChatMIDlet.java)
    it keep showing me the same kind of error in the output pane of netbeans...
    which is:
    Installing suite from: http://127.0.0.1:49296/Chat.jad
    [WARN] [rms     ] javacall_file_open: wopen failed for: C:\Users\user\javame-sdk\3.0\work\0\appdb\delete_notify.dat
    i also did some research on this but due to lack of forum that discussing about this,im end up no where..
    from my research i also find out that some of the developer make a changes in class properties..
    where they check the SIGN DISTRIBUTION...and also change the ALIAS to UNTRUSTED..after that,click the EXPORT KEY INTO JAVA ME SDK,PLATFORM,EMULATOR...
    i did that but also didnt work out..
    could any1 teach me how to fix it...
    thanx in advance... :)

    actually, i do my FYP on bluetooth chatting...
    and there will be more than two emulators running at the same time..
    one of my frens said that if u want to run more than one emulator u just simply click on run button..
    and it will appear on the screen..

  • Problems with parameter button in Crystal Report Server  2008

    Dear all,
    I have problems with parameter button in Crystal Report Server 2008.
    when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button'  on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter'  First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
    Could any one help me with this?
    I appreciate looking forward to your reply
    Ketya

    Try posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server

  • Excel MSGraph Axis Value w/ Report Gentration Tool kit help needed

    Hello,
    I am working on making all my Printed Data sheets dynamic so I don't need to have an Excel Template for each test I create. I have been able to make my own modifications to some of the Report Generation tool kit VIs to add little things I need or want changed, but I am stuck.
    I currently have LabVIEW writing Charts in Excel, using the Insert Graph VIs from the tool kit but I want to be able to make the X Axis Values invisible but leave the Y values for this particular data sheet.  I have looked through all my documentation but cannot find anything referring to setting that.
    What is the correct ActiveX Method and/or Property that I need to incorporate to do this? I found that in Excel if I click on the Chart it is in the Chart Options Menu but I cannot find a way to control it through LabVIEW.
    I am currently using 7.1.1 with Office 98 and the Report Generation Toolkit 1.1.0
    Any ideas?
    Thanks
    Jeff
    Jeff D.
    OS: Win 7 Ultimate
    LabVIEW Version: 2011,2010,2009 installed
    Certified LabVIEW Architect

    Hello,
    LabVIEW should have access to everything that the excel ActiveX object publishes.  One way to discover how to do it would be to record a macro in excel, where your recorded actions are on the x-axis as you desire.  This way you will have a macro which you can run that will do this for you.  Perhpas more importantly, you will then be able to look at the code for that macro you recorded, and make the equivalent calls in LabVIEW, which should basically expose which ActiveX calls on that object achieve the axis modification.  In any event, to help you with this process, below are some useful links.  Also, you will find other threads on this matter if you search the discussion forums.
    Excel and LabVIEW Integration Tutorial:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/4d86c9752c658da78625689300730c10
    Here are links to examples of using macros in Excel from LabVIEW:
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DD2F56A4E034080020E74861&p_...
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D9D856A4E034080020E74861&p_...
    I hope this helps!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...

    I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...what should I do?

    Hi Arika,
    The drivers that you need to install to make your executable work depends on what your executable is doing. To get started, you need to have the LabVIEW Run-Time Engine installed on your target machine (the Win2000 machine you are planning to use) in order to run your executable. Next, you need to determine what drivers your executable uses, if any. For example, if you are using GPIB instrument control, you will need to install the NI-488 drivers on your target machine. If you are performing data acquisition, you will need to install NI-DAQ drivers. If you are doing image acquistion, you will need to install NI-IMAQ drivers.
    All these drivers are available for downloading on ni.com. To get the drivers, go to ht
    tp://www.ni.com/support , click on the link that takes you to Drivers and Updates (under Option 3), and click on the links to get to the driver(s) you need. For example, if you need the LabVIEW 5.1.1 Run-Time engine, click on the All Drivers and Updates by Application link on the main page (http://www.ni.com/softlib.nsf/). Then click on the LabVIEW link, Windows 2000, Run Time Engine, and then you will see the link to get to the page to download the LabVIEW 5.1.1 Run-Time Engine.
    I hope this information helps.
    Best Regards,
    Wilbur Shen
    National Instruments

  • I have problem with my iphone 5 the battery still running so fast

    i have problem with my iphone 5 the battery still running so fast

    Click the link below choose your country then choose service and see if you have an Apple Authorised Service Provider in your country.
    https://locate.apple.com/au/en/
    If you dont have any Apple Authorised Service Providers near you either then contact AppleCare and ask them for options for postage in your country/region. You can find the number for your country below:
    http://support.apple.com/kb/HE57
    Hope this helps

  • I have problems with office for mac  screen resolution, specially with excel

    I have problems with office for mac  screen resolution, specially with excel ?

    For starters, make sure to Check for Updates on any of the Help menus, and make sure the product has all the latest patches. MS did come out with a patch addressing the display issues on Retina Macs. Latest patchlevel is 14.3.2.
    We are talking about Office:Mac 2011, right?

  • Have problems with Mail on MacBook running OS X Mavericks. It suddenly became stuck: won't quit and won't display any messages. Please help.

    Have problems with Mail on MacBook running OS X Mavericks. It suddenly became stuck: won't quit and won't display any messages. Please help.

    Select Force Quit from under the Apple menu and select Mail (it may say that it isn't responding).
    Clinton

  • Hello ! I'm using iphone 5 running ios 7.1.1 I have problem with Appstore error and also Safari don't work too. What can I do to fix this problem ?

    Hello ! I'm using iphone 5 running ios 7.1.1 and I have problem with appstore error and also Safari doesn't work. what can do I fix this problem ? I need help now my iphone can't do nothing

    Need more details. What is your appstore error exactly? and what happens when you try to use Safari?

  • Problem with writing continuous data to excel using using Report Generation vi's

    Hey Everyone,
    I am trying to read the data from DAQ and write to excel continuously using Report Generation vi's. 
    But when I run the VI, it writes only one interation of the while loop (gathering data from DAQ continuously) and doesn't append the data into the same file when I run it again after stoping the VI. 
    I have attached the VI i created. Please let me know if you have any idea to solve this issue. 
    Thanks
    Attachments:
    sample 5.vi ‏35 KB

    There are two problems with your VI.  First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this:  Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition.  When you exit the acquire/write to file loop, then close the file.  In particular, the opening and the closing of the file should not be inside the loop.
    As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus.  As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
    Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function.  Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
    Good Luck.
    Bob Schor

  • TS4123 I have problem with iTunes story (secure link to itunes store failed). I make In the "Command Prompt" screen, type in   netsh winsock reset the itune story is solve but after i close itunes the problem is back

    I have problem with iTunes story (secure link to itunes store failed). I make In the "Command Prompt" screen, type in   netsh winsock reset the itune story is solve but after i close itunes the problem is back

    The results show that you have a proxy server set and this can often cause problems with iTunes.
    The proxy setting can be accessed in Internet options>>Connections>>LAN Settings.
    Try un-checking the proxy server check box.
    It might also be a good idea to run a malware check if you didn't know you had the proxy server set.
    You can download a free version of an excellent scanner- Malwarebytes here:
    http://www.malwarebytes.org/

Maybe you are looking for

  • Playback is entirely broken in CS6 and Elements

    I have a frustratingly persistent problem: When I hit space or "play" to play my timeline, nothing at all happens. This happens regardless of what files I put in the timeline (it even happens if the timeline has just an audio file or a photo). The pr

  • Missing characters

    I, like others that I see on the forum, have a problem with missing characters. I am inserting pdfs into another pdf and while the original pdf displays and prints perfectly, when I insert it into the master document it no longer is correct. I tried

  • [Incoming Payments for WTax] Primary Key not exist in DB

    While performing the TDS upgrade, I am getting an error message as "[Incoming Payments for WTax] Primary Key not exist in DB". I have checked that the sheet conforms to the instructions provided in the Upgrade guide but am not able to resolve this. A

  • How to make dependent parameters.

    Hi, My whole req is like that- suppose i have 2 parameters supplier name and check number. 1-Now my req is like based on supplier number, value in check number should be populated. and 2- if we are not putting any value in supplier number then all th

  • Convert BUDAT value (like 01/01/2006) to a YYYYMM (200601) NUMC 6 value?

    If some ABAP expert here give a sample code on how to convert a date type of BUDAT value (like 01/01/2006) to a YYYYMM (200601) NUMC 6 value, that would be great <REMOVED BY MODERATOR> Edited by: Alvaro Tejada Galindo on Apr 10, 2008 12:14 PM