vb value to cell possible?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I put a value from a vb variable into an Excel 2000 cell? I have read
the help file and various forums, but cant get anything but #Value!!
 
Hi

assuming we're talking vba within excel ...
and with your variable called myvariable
then
Range("A1").value = myvariable

where A1 is the cell you want to put it in to.
you could further qualify it using the sheet name, e.g.
Sheets("Sheet1").Range("A1").value = myvariable

Hope this helps
Cheers
JulieD
 
sheets("Sheet1").range("A1").value = myVariable

or something like that...
 

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

Back
Top