ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Dumb Question (https://www.excelbanter.com/excel-programming/394353-dumb-question.html)

Oldjay

Dumb Question
 
How do I assign the value in say cell a3 to a string named QuoteNumber?

oldjay

Dave Peterson

Dumb Question
 
Dim QuoteNumber as string
QuoteNumber = "A quote number here"
activesheet.range("a3").value = QuoteNumber

or did you want to put the value in A3 into QuoteNumber?

QuoteNumber = activesheet.range("a3").value

Oldjay wrote:

How do I assign the value in say cell a3 to a string named QuoteNumber?

oldjay


--

Dave Peterson

Chip Pearson

Dumb Question
 
Do something like

QuoteNumber = Range("A3").Text ' or .Value

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Oldjay" wrote in message
...
How do I assign the value in say cell a3 to a string named QuoteNumber?

oldjay




All times are GMT +1. The time now is 11:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com