First of all, I am a complete newbie when it comes to VBA, but unfortunately I have reset this code and have to deal with it ...
What the application does is copy information to an Excel xlsm file and paste it into an XML file for further processing.
The fact is that everything goes very smoothly until I hit an ampersand in one of the Excel cells, i.e.:
I have a cell with "R & D", and when I pass it to an XML file, I get the following error:
Run-time error '91': Object variable or With block variable not set
Remember that I am full trash with VBA. I tried changing the contents in the cells for "R & D", "R & D", but not in cubes.
I believe the cell value comes from this line of code:
oCell.Offset(, 0).Value
but I would like to help avoid ampersands ...
Thanks a lot in advance if you need more information let me know.
source share