I bought a surface Pro recently with Office 365 and decided to write a poker game to learn how to code in VBA. I have it running but then decided to learn how to use pictures. So I downloaded vbcards.ocx and referenced it to my project.
I have a user form and inserted an image control (image1). I then tried the following two lines of code:
Deck1.ChangeCard = 1
Image1.Picture = Deck1.Picture
The code falls on the first line with a run time error code 424 (object required).
I cant see anything wrong with the reference (Playing Cards for Visual Basic checkbox is ticked)
Cant think of why it is not recognizing the object (Deck1).
Apologies if this is an easy one for someone.