ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   move a variable value in a macro to a cell (https://www.excelbanter.com/excel-programming/433917-move-variable-value-macro-cell.html)

Mike

move a variable value in a macro to a cell
 
Within a macro I am using several variables as counters. At the end of the
the session I need to move the values of the variables into the spread sheet
before saving. I used the value statement to bring the cel values in the
variables but can not go the other direction.

JamieH

move a variable value in a macro to a cell
 
If x is your variable...

sheet1.cells(1,"A") = x



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

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