Help with range function

kmsainath

New Member
Joined
Apr 12, 2011
Messages
3
I am a beginner when it comes to VBA. There are about 30 members in my team and I need to be able to monitor 30 different scores for each of my member in a given month. I need to capture the score initially on one excel sheet(automatically calculated on one cell with the help of furmulas) and on clicking a command button, I need that to be moved to the next sheet where the agent's name is present.

Now, if there are are 7 scores already available for a member of my team, once I select the member's name, the score that comes out on the first sheet should automatically move to the 8th column against the name of the agent. Can someone please help me on this?

Thanks,

Sai
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Private Sub cmd1_Click()
ActiveSheet.Select
'Dim d2 As String
Dim d4 As String
d4 = Range("D4").Value
'd2 = Range("D2").Value
If d4 = "Abdul Safi Mohd" Then
Dim f79 As String
f79 = Range("f79").Value
Worksheets("Scoresheet").Activate
Worksheets("Scoresheet").Select
Do Until Sheets("Scoresheet").Range < ActiveCell.Range("V3")
Sheets("Scoresheet").Range("C3").Select
ActiveCell.Value = f79

I now want to move to cell D3 and so on until V3. Can someone please help me on this.
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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