![Excel Visual Basic for Applications](https://static.faqabout.me/cover/excel-visual-basic-for-applications-cover-photo-png.png)
FAQ About Excel Visual Basic for Applications
![Can we assign a value in a cell to a variable in Excel?](https://static.faqabout.me/page/excel-visual-basic-for-applications-png.png)
Can we assign a value in a cell to a variable in Excel?
Yes, we can.
For example, let's say you have a value in cell B1. The code you need to write to assign this value to your variable;
- variableName = Range("B1")