Redeem the value of a variable in VBA and put in a cell in Excel

Asked

Viewed 3,988 times

0

I have a variable (a name) declared in VBA how do I rescue this name to put in a cell of an Excel spreadsheet (if possible through a formula) Thank you

1 answer

0

The value of a variable is destroyed after the execution of a function. To save the value of the same it is necessary to allocate this value somewhere as for example in a cell while the code is still running.

Range("A1").Value = variavel

Browser other questions tagged

You are not signed in. Login or sign up in order to post.