I'm developing a script in VBA, in Excel. This code will populate another program, using the data collected in the cells. But cells that contain a word that has accents are not working.
I'm using Application.SendKeys
as in the following section to fill in the other program
Sub teste()
'(...)
For i=2 to ultimaLinha
'parte que simula o clique no mouse
Application.SendKeys (Plan2.Cells(i,"D").Value)
'restante do código
Next
'(...)
End Sub
If this cell (i, "D") has a word that does not contain accentuation, everything goes very well. But if you have an accent, it is not "typed"
For example, if the cell is written 'José Mauricio', only Jos Mauricio And it needs to be sent exactly as it is contained in the cell, because the program will receive this information in a listbox and, because of the data validation the listbox she would not accept it if she was typed Jose Mauricio instead of Jose Mauricio , because it does not exist in the list
How do I get the accents to be sent?