show a value of X in worksheet

B

bertieBassett

I need to show the value of "X" as defined in a Macro and display it in a
worksheet cell
the value is a whole number
Any help appreciated
 
C

Chip Pearson

To put a variable's value in a cell, use something like

Worksheets("Sheet1").Range("A1").Value = X


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)
 

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