I know next to nothing now, my experience in VBA, HTML, CSS etc. very poor now. It’s been over 20 years since I last did anything with either.
Your two parts were merged to make the “body” of the question. Please review and edit to make sure that the question in its entirety makes sense.
When creating questions in the future, there will be only one body field, but for bes
Here’s my question:
I have an Excel Spreadsheet and I want to turn it into a text file, but not all of it.
Here is the format of the text file:
<ID>(This is an incremental number starting at 0</ID> <Description>This is B# where # is row#</Description> <VariableType>This is D#</VariableType> <Address>This will a plus (+) sign then cell C#</Address>
There are a few things to skip, but I know write a couple of simple if statements.
I know I want to skip any where B# is blank
I know I want to skip any where D# is Array of Byte because
I need to write a separate text file for Array of Byte
This file would need to look like this:
<ID>(This is an incremental number starting at 0</ID> <Description>This is "Slot #"</Description> <VariableType>Array of byte</VariableType> <ByteLength>#</ByteLength> 'The # is contained in cell B# it's phrased as "# slots, 2 Bytes) <Address>This will a plus (+) sign then cell C#</Address>
The above will be ran multiple times per line.
Example: B1 will contain 320 slots, 2 bytes.
So it would need to be rand 320 times for that one #.
Can anyone help me in doing this, hopefully small and quick script?
Also neither text file can contain quotation marks.
I am so lost at scripts, so I have not yet tried as I don’t really know how to begin.
TrickyNick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.