Create and name new worksheets in existing excel spreadsheet
Hello-
I am running LabVIEW 6i and excel2000. I need to write data acquired in LabVIEW to new worksheets of an already existing excel spreadsheet, and also name these new worksheets. I have been able to create the new worksheets but haven't yet figured out how to name them. I'm new to activeX and any help would be greatly appreciated.
Thank you
Hi Paul,
Programming using ActiveX can be tricky, especially knowing just what kind of datatypes the different methods and properties are expecting. There are 2 ways I would recommend for users to find out about ActiveX parameters:
1. Right-click and choose Help for the specific property/method.
When you have a method or property selected on the Property or Invoke Node, you can right-click and there will be 2 help options--one for the generic Property Node or Invoke Node, the other for the specific method or property that is selected in the node itself. If you select the help for the specific property/method, a Microsoft Visual Basic Reference Help should appear that will provide you with explanations and examples of the datatypes that method/property is expecting given the object that is in use.
2. Go to the MSDN Library >> Excel Object Model
This has an overview of Microsoft's Excel Object Model and will also show you how to use Microsoft's Excel Object Model.
Keep in mind that because ActiveX can be tricky, NI also offers the Report Generation Toolkit to make programming to Word and Excel much easier! Nice tutorials and examples are provided too.
Similar Messages
-
Is there any way to edit and save an existing spreadsheet file that was not created from my iPad? I get excel spreadsheets emailed to me and would love to edit them on my iPad and not ever use my PC.
Thanks. I tried an app called Office2HD and it does exactly what I need. I can even email my edited file from this app.
-
Hello,
My vi is gathering data from a piece of machinery. At varrious points durring the process, my vi must create printable reports. I am using the report generation tool kit to do this. What I want to do is for every report generated durring the run, add it as a new worksheet in an Excell workbook. My excell template works fine for the initial master report and I can add new data to new worksheets. What I am having a problem figuring out is how do I add the new data to a new worksheet using an excel template? I have 5 different reports that need to be generated at different times with some more often than others. I would like all these reports to be in the
same master excel file. Thanks in advance
-Greg
Gregory Osenbach, CLA
FlukeHi Greg,
There is no built-in support in LabVIEW to add a new worksheet to an existing Excel report simply because this functionality does not exist in the Excel application itself.
My suggestion would be to open up the template you wish to use for the new worksheet. Copy the cells from the template and paste them into your new worksheet that you've created. Then close the original template and you have another copy of the template in which you can populate with data values.
I have attached an example program of how to Copy and Paste a Cell in Microsoft 97 Using ActiveX in LabVIEW to this post. Hope this helps!
Kileen C.
Applications Engineer
National Instruments
Attachments:
XL_cell_copy_and_paste.llb 76 KB -
Problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2
Hi experts,
I'm getting problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2.
I have a scenario where is defined the document type ZC1, document part 200, authorization group 0002 and for all of these documents the storage category "Cofre DMS1". And the status which demands the storage category is 'FR'.
I've been fullfiling the BAPI_DOCUMENT_CREATE2 in this way:
"Tables
data: it_doc like bapi_doc_draw2,
it_return like bapiret2,
it_files like bapi_doc_files2 occurs 0 with header line,
it_objs like bapi_doc_drad occurs 0 with header line.
"Variables
data: wl_doctype like bapi_doc_draw2-documenttype,
wl_docnumber like bapi_doc_draw2-documentnumber,
wl_docpart like bapi_doc_draw2-documentpart,
wl_docversion like bapi_doc_draw2-documentversion.
it_doc-documenttype = 'ZC1'.
it_doc-documentpart = '200'.
it_doc-documentversion = '00'.
it_doc-description = 'Test of documents creation via BAPI'.
it_doc-username = sy-uname.
it_doc-statusextern = 'FR'.
it_doc-authoritygroup = '0002'.
refresh it_files[].
clear it_files.
it_files-originaltype = '1'.
it_files-storagecategory = 'Cofre DMS1'.
it_files-wsapplication = 'PDF'.
it_files-docfile = 'c:\110307.pdf'.
it_files-description = 'Test file'.
append it_files.
refresh it_objs[].
clear it_objs.
it_objs-objecttype = 'EKPO'.
it_objs-objectkey = '47000497600010'.
append it_objs.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = it_doc
IMPORTING
documenttype = wl_doctype
documentnumber = wl_docnumber
documentpart = wl_docpart
documentversion = wl_docversion
return = it_return
TABLES
objectlinks = it_objs
documentfiles = it_files.
After execute the BAPI process I got the following error:
E26 087 - Data carrier COFRE DMS1 not defined
Does anybody have a sugestion to help me, please?
Thks
David
Edited by: David Tsutsui on Mar 18, 2010 10:52 AMPlease refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
Data Carriers for Storage the Originals of DMS -
Steps to create and assign new cost centers?
Dear all,
Pls share with me the steps to create and assign new cost centers.
TIA
kogiRefer to the following link, will help you with the cost Center creation.
http://help.sap.com/saphelp_470/helpdata/en/08/5145cc43b511d182b30000e829fbfe/frameset.htm
It is actually the job of Fi consultants.
Post your e-mail ID I will send some documentation.
Regards
AK
Reward points if helpful -
How does APEX create and save new files. What extension does it save in?
Hi can someone help me with this question?
How does APEX create and save new files. What extension does it save in?
Cheers!
VJIt's really too bad we can't see VJ's face when the concept sinks in. This is one of my favorite moments when teaching APEX classes. Most people love it, some people don't. If nothing else it really proves the power and performance of the Oracle database. Each page view can generate 40+ queries, yet on the average system this takes less than .04 seconds.
Keep in mind there are no undocumented features or "Oracle Internals" that the APEX team uses to achieve this performance, just sound database design. With every feature they add they evaluate how it will be used and design the tables and indexes to most efficiently answer the query. Sometimes this means going against "purist" normalized principals. -
How do I name a worksheet tab in Excel on my IPad?
How do I name a worksheet tab in Excel on my IPad?
It's not currently possible to add to or view your wish list on the iPad, you will need to use your computer's iTunes for it.
-
How do i open and modify my pdf converted to excell spreadsheet
How do I open and modify my PDF converted to Excell spreadsheet?
After the conversion from PDF to .xlsx, you should be able to open the file in Excel and edit it like any other Excel file.
-
How to rename and access worksheet form existing Excel file??
Hi all,
Is there any FM to access particular excel worksheet?? I want to <b>download data</b> <b>into a particular sheet</b> <b>of existing excel file</b>. Is there any FM for that??Re: Download into Excel Sheet
regards
Andreas -
Can you create a new table from an Excel spreadsheet
It would be GREAT if there was a way to use SQL Developer to take an Excel Spreadsheet, and create a new table based on it - does anyone know if that's possible?
Thanks,
Brad BlakeExcellent - yes, from the thread on the SQLDeveloper website, it looks like you will be able to create a new table from an .xls file - very cool!
Does anyone know when version 1.1 is supposed to be coming out?
--Brad -
HOW CAN I ADD NEW WORKSHEET(TAB) TO EXCEL USING ABAP pROGRAM?
i want to add new tabs to my excel file using abap.... can someone help me on this?
hi,
PERFORM add_worksheet USING 'Test 1'.
*& Form ADD_WORKSHEET
FORM add_worksheet USING i_name.
Add new worksheet
IF g_first_ws <> 'N'.
g_first_ws = 'N'.
GET PROPERTY OF g_excel 'ACTIVESHEET' = g_worksheet.
ELSE.
CALL METHOD OF g_worksheets 'Add' = g_worksheet.
ENDIF.
SET PROPERTY OF g_worksheet 'NAME' = i_name.
g_row = 1.
g_col = 1.
ENDFORM. " ADD_WORKSHEET -
How to Create and Define New faults to be used inside our BPEL Process
Hi All,
I have created a new BPEL process but unable to add fault handling messages which I'm unable to do because I'm not having any
experience in creating my own custom fault or runtime faults.
Can anybody can share any URLS of how to create and where to define these things in BPEL Process.
Expecting a reply from ASAP. very urgent for me.
Regards,
CHHi Arik,
I opening in JDeveloper 11.1.1.2 but it is asking for migrations but not all migrating and unable to see the project.
By seeing at the logs it is saying that upgrade failed.
Please can you share any other URL other than this.
Regards,
CH -
Cancelling a line and and adding new lines to existing PO using API
Hi,
Can any one please help me know how I can cancel a line and insert new lines into a existing PO using any API.
Many Thanks,
Srinivas.VanessaC_VZW wrote:
However, if you do not want a contract on the new lines, (since you will have your own equipment), the activation fee will be $35.00 per line. If you agree to a 2-year contract for the share lines, the activation fees will be $25.00 per line.
You can add the new lines by calling our Telesales Department at 800-256-4646.
Thank you,
Really?! I didn't know that made a difference...I thought secondary lines were $25 - well, ya learn something new every day!
And a side note - we added a line for my 75+ yr old mother with one of our old flip phones and CS was extremely kind in waiving the activation fee (I could have sworn it was $25 charged and credited on the bill), PLUS they boxed up the flip phone after activating it (with an out of state number to boot) and shipped it to my Mom, all at no additional cost to me. I'm not saying that will be everyone's experience, and I was amazed the service rep offered to ship it for me - but I smiled and said "THANK YOU!" and accepted it! -
Create a PDF Form that populates an Excel spreadsheet?
Hello, I have basic experience with InDesign and would like to do something a bit daunting (don't know if it's even possible).
I'm coordinating an awards competition where people will fill out a form and I'd like that data to populate an Excel spreadsheet. I also make these forms publicly available so I would need a way to 'lock' the form from being edited.
I want to layout my form in InDesign and give it a few data fields (e.g. Name, contact information, etc...) and radio buttons (e.g. which awards category would you like to compete in). There are some data fields (e.g. provide background information on your submission) that I do not need populating my Excel spreadsheet.
The Excel spreadsheet will simply be used for administrative purposes (e.g. keep track of how many people are competing in a specific category).
Is this possible? Any online tutorials that people can direct me to? Thanks!Yoou can design the form in ID, then export to PDF and use Acrobat to convert to a form and "publish." You have several options on how you get the data back from the published form, and one is designed to allow you to populate a spreadsheet, I believe, but that's really an Acrobat topic. How large scale will the distribution be? A standard Acrobat license permits only 500 returns.
-
How do I create a PDF that works like an Excel Spreadsheet?
How do I create a fillable PDF that can total numbers like an Excel Spreadsheet? Need to find out how A.S.A.P.!!!!
Hi,
Sorry, FormsCentral doesn't support calculation of forms fields. Vote for existing popular Ideas or submit your own using this FormsCentral form: https://adobeformscentral.com/?f=XnF-KJVCovcEVQz9tZHYPQ
Thanks,
Wenlan
Maybe you are looking for
-
The telescope instruction says open a Terminal and put in ls/dev/* and other such things and all I get back is that none of them are recognised. JeffersE
-
Error message at adobe edge start-up.
I get an error message when i open or create a new project. I've looked on the internet for a solution but I couldn't find one that has my error in it. I've included the message below, as you can see I've barely done anything in the new file except i
-
Repeat Purchase Order Output Type - Auto Repeat
Hi, Currently, when we create the Purchase Order the output type will be automatically generated in the message tab once the Purcahse Order is saved. In our Purchase Order process, we have using the function Purchase Order Online Approval and Purch
-
Oracle ADF VO old value problem.
I have a web application developed Oracle ADF and Jdev 11.1.2.3.0. I have a button in my page which name is "Complaint". When user click the button, it invokes a method on ApplicationModuleImpl via a ManagedBean. public void clearAndExecute(){ getCar
-
Hi, Is there a way to reduce the row spacing on an output with col format? The default row spacing is to big - times bigger than output with no col format. Is there anything as BREAK ON ROW - 2 (NEGATIVE)? Thx, Dobby