1st post. sheet upload and cell value change question

VBAer

New Member
Joined
Jun 13, 2017
Messages
10
Hello,

I am new to VBA. i am needing help uploading a workbook sheet from different workbook file. Im learning VBA from one of my bosses and need some help completing his next project for me. i dont know how to upload a sheet to start the project and could figure out the rest of the project myself. here is the project below if any one can help. and thank you to the people that point me in the right direction

--------------------------------------------------------------------------------------------------------------------------------------
I would like for you to input that data on a spreadsheet as follows:

Full Name
Calls Per Hour
Above/Below Goal
Rep 1
14
Above
Rep 2
11
Meets
Rep 3
10.99
Below

<tbody>
</tbody>

In Cell A, put the person’s name, in cell B input the persons score and in cell C put whether they were Above, Meet or Below the CPH goal. However there are a few extra pieces that I would like to add to make it more challenging:

1. On the spreadsheet with your code, I would like only the name in column A filled in before the code fires, meaning B and C columns only contain headers, no data.
2. The code will open the attached spreadsheet, locate the colleagues name and pull the data for column B based on a name match.
3. Then the code, based on the data pulled in column B, will fill in column C based on this formula (10.99 or < = Below); (11-12.99 or < = Meets); (13+ or >= Above).
4. All of the code must be placed in a module and not in a SUB. For instance, if I press the button (FIRE CODE), there should only be one line of code in the SUB, all of the rest of the code should be written in a module.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

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