이 내용은 고객님의 설정 언어로 확인할 수 없습니다

이 내용은 다른 사용 가능한 언어로 표시됩니다. 고객님께서 사용하시는 브라우저에 텍스트 번역에 도움이되는 기능이 포함되어 있을 수 있습니다.

Number Format of Excel Set Cell Format VI

Updated Oct 27, 2020

Environment

Software

  • LabVIEW Report Generation Toolkit

I want to change the format of cell in my Excel sheet programmatically. I found Excel Set Cell VI but I do not have any idea which number format I should use.

The basic idea is using Excel number formatting guidelines as described in the Help page of the function. You can refer to the guideline in proper Website.
Or you can obtain number format programmatically as follows.

1. Prepare test Excel file.
2. In the Excel file, set format which you want to use in your application in the cell A1. In the following example, format is set as Accounting.
3. Use the following program. In Template Excel File Path control, choose the Excel file you prepared. Then run the program.

Note: You can find Excel Get Range.vi in the following path.
C:\Program Files (x86)\National Instruments\<LabVIEW version>\vi.lib\addons\_office\_exclsub.llb

4. You can obtain corresponding number format in Number Format indicator like below. Copy and paste it in number format input of Excel Set Cell Format.vi.
Tariff Impact Update Learn more

Was this information helpful?

Yes

No