Active X and Excel

Using LV2012 and Office 2010.
I am trying to create a XLS file to collate data from numerous test certifcates to do some analysis on the test data. Got a good working example in the Help section and have modified it to suit my need. It works but I need to be able to do the following :
1. It always writes the headers on the Worksheet 4. How to make it to write to the Worksheet 1 ?
2. How to auto size the column width to suit the header information ?
3. How to auto save the file to a name I choose in advance. ( All the input fields on the Invoke Method are Variant data types but what I need is a string type...)
Its good that the node exposes so many properties and methods but many of  them are cryptic and the function is not too obvious.
Raghunathan
LV2012 to Automate Hydraulic Test rigs.
Solved!
Go to Solution.
Attachments:
CreateXLS.zip ‏46 KB

Raghunathan a écrit :
Using LV2012 and Office 2010.
I am trying to create a XLS file to collate data from numerous test certifcates to do some analysis on the test data. Got a good working example in the Help section and have modified it to suit my need. It works but I need to be able to do the following :
1. It always writes the headers on the Worksheet 4. How to make it to write to the Worksheet 1 ?
2. How to auto size the column width to suit the header information ?
3. How to auto save the file to a name I choose in advance. ( All the input fields on the Invoke Method are Variant data types but what I need is a string type...)
Its good that the node exposes so many properties and methods but many of  them are cryptic and the function is not too obvious.
1- By default a new workbook is created with 3 worksheets. After creating the new workbook you have a VI named Open New Worksheet.vi that add a fourth worksheet to the sheets collection. This new worksheet is now the active sheet so when you add the headers they are written to sheet 4.
 You don't need to add a new worksheet, by default a new workbook is created with sheet 1 active. To select a worksheet create a vi similar to Open New Worksheet but replace the Add method with the Item method and set index to the value of the sheet you want to select.
2- You need to use the Range Autofit method for that
3- When you use the Close method use the Save Changes and Filename arguments (you can pass a string to a variant input or use the 'To Variant' function)
Ben64

Similar Messages

  • HttpWebRequest_WebException_RemoteServer error when opening MDS Explorer and Excel addin also throws an error

    HI,
    I am facing a big problem every now and then and  It is intermittent is what i have seen.
    I keep getting be bleow error messare on my MDS Explorer. I am having MDS2012 installed both UI and excel addin gives error 
    My machine is a 2008 R2 Enterprise Web Server x64
    I have checked my Authentication settings, and Windows Auth is enabled for the site and for Services folder and so is Anonymous on Services folder.
    The error happens both on the machine itself and from a client machine.
    The Same time excel addin throws the below error
    But when do a complete  Restart of the server or Do a IISRESET on the server by going to >> RUn >> IISRESET ,
     it starts working back normally. But this keeps happening very often. How to solve this . It is getting irritating for customers to use it. Please help.
    This is the log details say:
    ===================================
    The requested service, 'http://ausapexweb01:81/service/service.svc/bhb' could not be activated. See the server's diagnostic trace logs for more information.
    Program Location:
    Server stack trace:
       at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
       at Microsoft.MasterDataServices.AsyncEssentials.AsyncResultBase.EndInvoke()
       at Microsoft.MasterDataServices.AsyncEssentials.AsyncExecuter`1.EndExecute(IAsyncResult ar)
       at Microsoft.MasterDataServices.ExcelAddInCore.ConnectionManager.<>c__DisplayClasse.<TestConnectionAsync>b__c(IAsyncResult ar)
       at System.Threading.Tasks.TaskFactory.FromAsyncCoreLogic(IAsyncResult iar, Action`1 endMethod, TaskCompletionSource`1 tcs)

    Hi Tejaswini,
    Please refer to the following article to troubleshoot this issue:
    http://blogs.technet.com/b/beatrice_popa/archive/2013/01/31/master-data-services-issue-with-https-error-message-httpwebrequest-webexception-remoteserver-arguments-notfound-debugging-resource-strings-are-unavailable.aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Can Microsoft Word and Excel be migrated to mac pro?

    Can Microsoft Word and Excel be migrated to mac pro?

    You can also install Windows (new activation copy) on your Mac and use Windows natively, or for 99.9% of running Office apps, run Windows as a guest VM is fine. The data can be opened and edited and exported back to native Office format and opened in OpenOffice and others, or in Pages and Numbers, though whether those are satisfactory solutions or not you'll have to decide.
    If you have a copy of Office that includes PC and mobile devices and Mac? like Office 365 for 5 devices?
    But the actual apps of course are platform / OS specific.
    And right now if you are running Windows 8.1 for instance, you can download the ISO and install Windows 10 Technical Preview (very nice btw, combines a lot of desired features). Have only run into one small problem in using it so far.
    VirtualBox is free Oracle VM or there are commercial VM products. To run Windows natively you just use a Mac utility, Boot Camp Assistant, to partition a drive (internal) and to install and provides Mac specific drivers.

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • Diff. b/w Activity type and Statistical figures

    Hi,
             Could any one explain difference b/w Activity type and Statisfical figures. I observed both usages & purposes r same and not find any difference. If so, why there is need of other.
         Along with i also want to know what's internal orders? Can't we do the same job in Cost Center Accounting.
    Thanks in advance.
    Krishna.

    hi
    Even it looks like similar there are some differences and meant for different purposes
    pl. go through the following links .
    /thread/367171 [original link is broken]
    IO/ and Cost Center
    best regards

  • Replacement Needed. This iphone is not able to complete the activation process and needs to be replaced. Please visit your nearest apple store or authorized service center.

    Probably will never ever think of buying a locked phone from AT&T cause its one of the worst system integrations ever that these companies could think of.
    The entire problem started when I put in a request with at&t to unlock my iphone 4s (ios7) which did get approved. I performed the entire instructions they asked me to do, which is to backup and restore. After doing those instructions my iphone gave me an error message below
    The SIM card inserted in this iPhone does not appear to be supported.
    The SIM card that you currently installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. Please contact Apple for more information.
    Basically saying that at&t hasn't still unlocked the iphone which a really helpful apple executive was able to confirm. I initiated another unlock process from at&t in order to unlock the iphone, just to be sure that its not something wrong from my end. The nice at&t lady stayed on chat with me to unlock the iphone step my step while I was calling the apple tech too. And the apple tech confirmed again that the iphone is locked to at&t.
    Now, just a few minutes ago I tried another restore to see if any progress is being made and to my surprise I got an error message saying
    Replacement Needed. This iphone is not able to complete the activation process and needs to be replaced. Please visit your nearest apple store or authorized service center.
    I feel like I am just going around these two different "money hogger" companies which set certain rules and regulations to screw a regular phone buyer. I purchased this iphone in USA and trying to unlock in India, is it really this hard to simply unlock a device.
    For now I am going to try to call a apple office in india (apprently we don't have very many out here) and see if they can help me. But any other assistance regarding unlocking an iphone 4s would be helpful. I have however, tried checking IMEI.info, called up apple, talked to at&t (which always say go talk to apple) I do have a case number from apple as well in case an apple executive reads this discussion forum (case number: 566383594)
    Thanks

    You got a confirmation from AT&amp;T that it was authorized. Is this correct? - Yes i did get an email authorization on the 21st.
    Then you connected the phone to a computer with the latest version of iTunes installed. You clicked on the phone's name in iTunes, then clicked "Backup Now". - Yes
    When that finished you clicked "Restore iPhone" (NOT "Restore Backup") - Yes
    Are you with me so far? - Yes.
    And @ Varjak is right that after the 3rd restore I get the replacement error. 
    Plus I have NEVER jailbroken the iPhone. To give you another update, I spoke to a really nice apple tech in India who was atleast able to get me out of the replacement error by doing a recovery mode option. However, the lastest restore still gives me the same error
    The SIM card inserted in this iPhone does not appear to be supported.
    The SIM card that you currently installed in this iPhone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the iPhone. Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. Please contact Apple for more information.
    Message was edited by: jabgars

  • How do I make Word and Excel Documents readable to PC users that cannot open them

    How do I make Word and Excel Documents readable to PC users that cannot open them

    Be sure to save them in the Office 2007 format as .doc or .xls files.

  • Plase help me to open active iphone  and idont speak english

    help me to open active iphone and i dont speak english

    Without the original Apple ID and password, you cannot activate the iPhone it's to deter thief using it.
    Activation Lock cannot be bypass and Apple won't help.
    http://support.apple.com/kb/HT5818

  • Difference between refresh of Report in Active Viewer and Active Studio BAM

    We use the Oracle SOA Suite with BAM (on Linux) 10.3.2.0.
    I have 2 questions:
    1. We have made a report with several items and in Active Studio --> Select Report --> Edit mode --> I see the correct values for my report. When I open my report in Active Viewer I see data from yesterday. The report is not being refreshed. How can I change this, what is causing this difference between Active Viewer and Active Studio in Edit mode??
    2. One of my items in my report always gives the message: opening (only in Active Viewer, in Active Studio/edit mode I can see the correct data).

    Is your popup blocker turned off? I can only imaging that the popup blocker may be keeping the Live Data window from appearing and updating the dashboard. Active Studio doesn't do a Live update, but an update on report load.

  • REPORT GENERATION TOOLKIT AND EXCEL

    i have a problem with report generation toolkit and excel
    the problem is:
    i must read & write from a excel worksheet when this is open but when i using the report generation the worksheet is open another time
    have some solution for this problem?
    sorry for my english

    You need to close Exel when before your VI is running. Excel can not have two instances running at the same time.
    Joe

  • Adobe photoshop,word, and excel  won't open on my 2010 air mac

    adobe photoshop,word, and excel  won't open on my 2010 air mac. Message says I have lost my power pc connection. this happened while in Mexico

    Adobe Photoshop CS2, MS Word 2004 and other PPC apps running in Snow Leopard Server installed into Parallels  for use in Lion or Mt. Lion:
                                  [click on image to enlarge]
    More information here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • My microsoft word and excel programs won't work and files won't open.

    After an automatic HP update, my Microsoft Word and Excel programs won't work and my files won't open.  What caused this and what can I do to fix the problem without losing my files?  I have files that are part of my work and I HAVE to have them ASAP.  Please help.
    Thanks in advance.

    Hi
    Please find the steps to resolve your issue.
    Open Installed Updates by clicking the Start button , clicking Control Panel, clicking Programs, and then, under Programs and Features, clicking View installed updates.
    Click the update that you want to remove, and then click Uninstall.  If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
    Or Try this step
    If this does not resolve your issue then you can try a System restore to the date where unit was working fine steps provided below for you.
    Start in search box type System Restore then click on it then select the Date where unit was working fine.
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • BO XI 3.1 SP3 and Excel 2010

    Hi There
    My BO is BO XI 3.1 SP3, and excel is 2010, my webi report has over 65523 rows, but I found in the excel, it will split into two tabs, it does not use excel 2010 feature
    does any one know the reason?
    thanks

    Excel 2010 is not suportive by BO XI 3.. It is possible in BO XI 4.0. You can try What Gowtam Allu said, but I am not sure if it works.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4079f8f6-2b49-2d10-d790-bc596012dc25?quicklink=index&overridelayout=true

  • I own a iPhone and I have in ÇáÇí Cloud account, but has been disabled worked ريستور and what worked device device is linked to the account books first and I am I do not know the account and password and wrote activation iphone and I am ready to prove tha

    I own a iPhone and I have in ÇáÇí Cloud account, but has been disabled worked ريستور and what worked device device is linked to the account books first and I am I do not know the account and password and wrote activation iphone and I am ready to prove that this device is not stolen any way you want

    Apple does not participate in these forums.  We're only users like you.

  • How do I get windows and excel on my iPad

    I want to use my iPad 2 for my business but need word and excel....how do I do this?

    There is no Word or Excel for iPad or any other iOS device, but you can use other Apps to edit these files.
    http://www.zdnet.com/blog/mobile-gadgeteer/ipad-office-app-showdown-four-apps-to -help-you-get-work-done/3445

Maybe you are looking for

  • Weird Color in preview monitor

    I recently started a new session in Color and found that my preview window (above the scopes) is not displaying a standard video image but what appears to be false color or something like it. I am using Color with a Matrox MXO (and have for several o

  • Navigating in pdf and simultan. open webpages

    My problem is the following. I have got a pdf-document which is started as a plugin in the html page. So far it is clear, isn't it? Then I want to check if the person is changing the pdf-page if there are changes on the new pdf-page which pagenumber

  • How to find my iPhone by serial number

    How to find my stolen IPhone if I didn't sign up in FIND MY iPHONE?

  • Script output dimensions are changing

    hi, I have developed a script in fico. when i am selecting one output printer type it si coming fine. when i am selecting other printer output will be changing and data is moving. Please help for this problem. K. Kishore

  • Bank Upload : Statement 00227 already exists; entry ignored

    Hi We have uploaded the bank using FF.5 for two days 13.7.09 and 14.07.09 seperately. The batch SM35 processed for 14.07.09 first and 13.07.09 second. Now when we are trying to upload 15.07.09, the system is displaying the following error. Is there a