View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Put the value of a cell in a variable

with worksheets("Sheet1")
strComp = .Range("B9").Value
End With
msgbox strComp

--
Regards,
Tom Ogilvy

"SHIPP" wrote in message
...
I would like to place the value of a specific cell into a variable. Does
anybody know how to do this?

Something like...

strComp=somecells value
--
M. Shipp