have you had a look at the API endpoint api/issues/search? you would have to use pagination depending on how many issues you have based on your query but this would be the call you are looking for.
sorry i am no vba expert did you check what you are sending to sonarqube? it might be more convenient to use basic auth with an authentication token as described here, so
not an Excel expert at all - i hate it , if i remember correctly some colleague tried to export Sonarqube issues via Excel sheet and data / select from web, but gave up because of authentication issues. If there’s a way via Excel it should be possible with api also, when authentication seems to be the tricky part.
The stackoverflow posting he has relied on