assigning variable value

D

drew raj

in a cell i have dde data feeding it it. I am trying in
vb to have a variable equal this cell and i am having
trouble assigning a variable to this cell. First i tried
Dim x as integer and dim x as string equaling this cell
but i am getting debugging errors.

anyone have any ideas???
thx
 
O

Orlando Magalhães Filho

Hi,

Suppose the cell is A1. Did you try this?

Dim x
x = Range("A1").Value


HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top