Hello everyone,
I have some questions on changing some attributes or properties in an excel-file controlled from my CVI program. I already can export data to a worksheet and can make a chart and other things, but some things i cannot find or I do not understand. I'm sorry for some of my questions because I am sure some of them are silly but actually I must hury with my project and I already searched long time for solutions so a little help of you would be very nice.
1) I do not understand exactly this VARIANT variables. I want to move a sheet forward or backward with the function 'Excel_SheetsMove (Range_Handle, NULL, CA_DEFAULT_VAL, CA_DEFAULT_VAL);' but what should I now put in instead of 'CA_DEFAULT_VAL'?
2) Another problem with this VARIANT variable: I want to change the background color of my chart. I think I need the attribute 'SchemeColor' but what should I now put in as a color? How do I define a VARIANT variable as a color?
3) Which function is needed for changing the properties of a cell? I want to make less places behind my dot/comma. My numbers are looking like that '1034.2376' but I want it to look like that '1034.2'.
4) A yes-/no-question: Do I every time need a range in a sheet to put data/numbers in a cell that is in the range or is there another possibility?
Okay, I think that's all for now and sorry for my bad english but the more I am reading and posting here, the better it gets.
😉Greetings
Marek S.
____________________________________________________________
Operating System: Windows 2000 - Software I use: LabWindows/CVI 7.1