VBA: Select row and press button to store in a variable

VBANEWBIE12345

New Member
Joined
Mar 10, 2018
Messages
1
I got this assignment, which i can't figure out.
I have tried to use array, but i can't really get it right in VBA.

The assignment:

"You must now create a function/sub that is activated by a button in Excel. When the user has
selected a row and presses the button, the expected grade of the student must be stored in a
variable. The function/sub must be able to be run any number of times on any number of rows. The
user must then be able to press another button that will show the average grade from the selected
rows."

Any kind of help is useful :)
Thank You
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hello @VBANEWBIE12345 and welcome to the Forum. This sounds like a homework assignment. Forum members are here to help but generally, they will not help to do an assignment for you. Could I suggest that you do a little research online related to your assignment. There is a great amount of information that will guide you in the right direction.
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

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