I defined few variables with these lines:
Dim RAM, VRAM, Storage, Budget As Integer
Dim CPU, GPU As String
Now I try to call a function which is defined like this:
Sub PCBuilder(CPU As String, GPU As String, RAM As Integer, Storage As Integer, VRAM As Integer, Budget As Integer)
When I try to run the code i get an error "ByRef argument type mismatch"
I noticed that only GPU and Budget have the right type, the other variables are defined as Variant.
Why is this happening and how can i fix it?