TimExcel123
New Member
- Joined
- May 30, 2019
- Messages
- 2
Hi guys,
My name is Tim and I am new to this Forum.
I experience a lot of trouble while designing my first code in Excel VBA. The problem is as following: in column B(worksheet 1), I inserted the names of some students. in column C, I inserted the marks of the corresponding students (see table 1).
In worksheet 2 table 2, I want cells A1:A3 to display the names of the 3 best students. After watching a lot of Youtube-tutorials, I still did not manage tot figure out how to do it. Is there anyone who could help me designing this code in VBA?
Thanks in advance!
-------------------------------------------------------
Table 1 worksheet 1:
[TABLE="width: 100"]
<tbody>[TR]
[TD]Student[/TD]
[TD]Mark[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Alex
[/TD]
[TD]9,5[/TD]
[/TR]
[TR]
[TD]Sophie[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Helena[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]jan[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
table 2 worksheet 2:
[TABLE="width: 100"]
<tbody>[TR]
[TD]Best students[/TD]
[/TR]
[TR]
[TD]?[/TD]
[/TR]
[TR]
[TD]?[/TD]
[/TR]
[TR]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]
My name is Tim and I am new to this Forum.
I experience a lot of trouble while designing my first code in Excel VBA. The problem is as following: in column B(worksheet 1), I inserted the names of some students. in column C, I inserted the marks of the corresponding students (see table 1).
In worksheet 2 table 2, I want cells A1:A3 to display the names of the 3 best students. After watching a lot of Youtube-tutorials, I still did not manage tot figure out how to do it. Is there anyone who could help me designing this code in VBA?
Thanks in advance!
-------------------------------------------------------
Table 1 worksheet 1:
[TABLE="width: 100"]
<tbody>[TR]
[TD]Student[/TD]
[TD]Mark[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Alex
[/TD]
[TD]9,5[/TD]
[/TR]
[TR]
[TD]Sophie[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Helena[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]jan[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
table 2 worksheet 2:
[TABLE="width: 100"]
<tbody>[TR]
[TD]Best students[/TD]
[/TR]
[TR]
[TD]?[/TD]
[/TR]
[TR]
[TD]?[/TD]
[/TR]
[TR]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]