I have an Excel file that has multiple rows/columns, and I need to name the individual cells to variables, that I can then paste into a webform. For this, I've just had the macro paste into a TextEdit file so I can make sure that the information is correct. For the real version, I will be iterating through the webform fields and pasting the variables. I will have about 500 rows in the real world and about 10 columns of data, but have started here.
I've created the macro and get the variables. I'm sure that I created the macro in the most elementary way, so suggestions are appreciated to make it simpler. A couple questions: Is there a way to not have separate AppleScript to create each variable? And, if there is a number, can the variable be formatted as a non-scientific notation (I want the value of the variable 1010000114 to remain 1010000114, NOT 1.010000114E+9)
Hi there. It’s been a long time since I worked I that, and I think I just found another way to accomplish what I needed. I’m not actively working now and so I’m not using KM at the moment.
It's actually very easy, though totally unintuitive! You coerce the number to a unit of measurement -- any will do, I've used inches -- and get the text representation of that.
return 1.010000114E+9 as inches as text
--> "1010000114"
Here's a little demo, the last dialog showing you can still treat it as a number in KM and use it in calculations: