‎02-06-2017 08:21 AM
So, I have written a program that searches for excel files with a file name matching a certain format. Based on which format the cell falls into, I pull the data (approx 60-70 cells) and store the data in one of approx three dozen summary sheets. This winds up with maybe 12-50 rows depending on the summary type.
In the past I did this with strings for simplicity as they are easy to search/split/etc. But now, due to the fact that no one here can't keep anything in at least a similar format (i.e. people write different units, micro vs mili, 0.65 vs 65%, and abbreviations) which is unnaceptable.
I am now trying to make this human proof, however, there is a main issue. So, I can format the basic file using custom format, no problem (#"g/ml" for example). But I when I take the data, store it in labview, and write it back to a newly created summary sheet it will not bring the custom (or any) format along.
I found the function to write a custom format, but can't find anything that grabs the current format.
And no, I can't just format the columns in the summary sheet, as they vary for each process slightly...
Solved! Go to Solution.
‎02-06-2017 10:45 AM
There is an Excel Set Cell Format, which means you can create a similar function that will Get Cell Format. Shouldn't be too hard.
‎02-06-2017 11:50 AM
‎02-06-2017 11:57 AM
Thats crazy... I wonder if I haven't updated in a while or something.... I cant find it for the life of me...
‎02-06-2017 12:04 PM
Even Googling I'm just finding info on Excel set cell format, I can't find anything on Excel get cell format...
‎02-06-2017 12:09 PM
I didn't say there was a Get Cell Format. I said it wouldn't be difficult to make your own function to do that.
‎02-06-2017 12:10 PM
@LukeWUSM wrote:
Even Googling I'm just finding info on Excel set cell format, I can't find anything on Excel get cell format...
It doesn't exist, you will have to create it. Use Excel Get ActiveX References.vi and do something like this (incomplete).
Ben64
‎02-06-2017 12:16 PM
AH thank you, I totally misread that. I just felt dumb, I wrongly assumed if they had a set function they would have a get function as well and somehow I was missing it!