Assign a Variable a Value

NewToExcelGlenn

New Member
Joined
Sep 29, 2017
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
Hello. Just signed up and am amazed at all the stuff one cando with Excel and VBA.
I only know a handful of VBA codes and hope to learn alittle more and contribute where I can.
I have my sports team files that I use as a hobby andrecently found out about VBA and how some things can be automated.
I’m gonna try and create an Excel macro and was wondering ifI could ask a question.
I’m looking to assign a value to a variable. (I think I havethose terms right).
Its like this:

TeamPR = ‘ the value that’s in the last cell in column C

I tried looking it up on the internet, but not knowing toomuch I got confused.
If anyone wants to share this code, it would be sincerelyappreciated.
Thanks very much and have a great day and weekend.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,215,490
Messages
6,125,096
Members
449,205
Latest member
ralemanygarcia

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