brandewie7
Technical User
I am trying to have the default value of an inputbox equal the value of the last answer of the inputbox. For example:
Static DefaultAccount
dim question as string
question = inputbox("What account?",,DefaultAccount)
defaultaccount=question
This first time the macro is ran it should be blank. After the user enters an account number, and runs the macro a second time, the first entered account should be the default.
I have done something similiar to this in Access. Although with access, I was able to use ADO to update a value in a table, and then use that value after the form was closed. I am trying to use an Extra macro, so a key can be assigned to run it. I hope this makes sense. Thanks for your help in advance.
Static DefaultAccount
dim question as string
question = inputbox("What account?",,DefaultAccount)
defaultaccount=question
This first time the macro is ran it should be blank. After the user enters an account number, and runs the macro a second time, the first entered account should be the default.
I have done something similiar to this in Access. Although with access, I was able to use ADO to update a value in a table, and then use that value after the form was closed. I am trying to use an Extra macro, so a key can be assigned to run it. I hope this makes sense. Thanks for your help in advance.