vga to HDMI needs an active adapter to convert analogue signals to digital, a normal cable with pin to pin won´t work.
your ebay link can work the other way around, from HDMI as source (Laptop) to monitor (VGA). But that´s not really common and you would need a special Laptop HDMI port with VGA passthrough for that. But like said, that´s not your way to go
😉
Here some reviews which had problems because of this passive adapter cable:
https://www.ebay.com/urw/BestDealUSA-HDMI-Gold-Male-To-VGA-HD-15-Male-15Pin-Adapter-Cable-6FT-1-8M-1080P/product-reviews/210739806?_itm=172761697825
You wanna connect your PC by displayport, because your PC provides VGA and DisplayPort monitor connection and you could simply use a displayport to hdmi adapter (both digital), like linked before by SkyNetRising.
If the monitor has a Displayport as well, use a simple DP to DP cable.
Have a look, if this monitor provides DisplayPort too.
By the way, DisplayPort gets you a better image than the old outdated VGA port. You don´t need to use VGA because you have a high defnition graphics output: DP (DisplayPort)
https://en.wikipedia.org/wiki/DisplayPort