Help writing the code for this application!

stevensonnz

New Member
Joined
Sep 12, 2011
Messages
2
Im trying to write this code for this project i am working on and need help with the code.

What im tasked to do is as follows:

Write an application that displays a solid square composed of a character input by the user.
The user should also input the size.

A) Write a sub procedure DisplaySquare to display the solid square. The size should be specified by the integer parameter intSize. The character that fills the square should be specified by the string parameter strFillCharacte. You should use a For...Next statement nested within another For...Next statement to create the square. The outer For...Next specifies what row is currently being displayed. THe inner For...Next appends all the characters that form a row to a display string.

B) Double click the Display Square Button to create the event handler. Program the event handler to call procedure DisplaySquare.


Using VBA really need help with the code, havnt got anything so far duont even know where to start.

Help would be greatly appreciated
smile.gif
smile.gif
smile.gif


How do i add pictures to my post? ill upload a picture of what the form should look like
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Didnt realise the forums were connected
Welcome to the MrExcel board!

The forums aren't directly connected but some people help in multiple forums. You should probably have a look at point 24 of the Posting Guidelines, including the excelguru link so you know why the cross-post has been pointed out.

The other issue for you is that your question sounds very much like a homework assignment. While people here are often happy to nudge such threads in the right direction if you've made some headway yourself, nost are reluctatnt to actually do your homework for you.
 
Upvote 0

Forum statistics

Threads
1,223,430
Messages
6,172,065
Members
452,444
Latest member
ShaImran193

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top