8 Create your own Snake game in Excel VBA Entering the main program code

Jun 3, 2026Channel
AI Analysis
Data from YouTube Data API v3Updated Just now
excelgeist
excelgeist

3.9K subscribers

View Channel

Video Overview

Video Details

Published1 month ago
Duration3:51
Video IDY5fyY06Mkd0
Languageen
CategoryScience & Technology
PrivacyPublic
Made for KidsNo
Video TypeRegular Video

Performance Metrics

Views19
Likes0
Comments0
Engagement Rate0.00%
Likes per 100 views0.00
Comments per 1K views0.00

Description

Playlist: https://www.youtube.com/watch?v=VU5_83BbJfo&list=PLcwMjDfa1J18TfjYmgy9CR9lr5MQx6W0v Page: https://excel.hpage.com/create Contact email address: [email protected] Create your own Snake game in Excel VBA. Entering the main program code. The input mask is created; now all you need to do is paste the main program code. You'll receive the main code as a Word file via email. The contact email address can be found in the video description. In the VBA editor, double-click the UserForm1 element, then select the entire contents of the editor using the keyboard shortcut Ctrl + A and delete it. In the Word file, select the entire content using the keyboard shortcut Ctrl + A (this is very important; be sure to reduce the line spacing), copy the entire content, and paste the copied content into the VBA Editor. The second worksheet is to be hidden. The program is finished. This game is an Excel file programmed in VBA. The game is played from a user form. Playing field is 20 × 20 squares. In the beginning, the snake has a yellow head and four orange body parts. The snake is supposed to catch the blue rabbit. The rabbit doesn't run away and just waits for Snake to catch it. After each captured rabbit, the snake's body becomes one box longer and the player receives one point. The snake can be up to 299 orange boxes long. The new rabbit appears in a different box. If the new rabbit cannot be seen, the snake should keep moving and the new rabbit will come out. Four buttons with arrows control the movement of the snake; the direction of the arrow is the direction of movement. The game is started with the "Start" button, the four control buttons will be visible and the result is no points. If the snake leaves the playing field or bites into its own body, the four control buttons are hidden and the game is canceled.

Related Videos

More videos from excelgeist