Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need to remember the last destination selected in an inputbox as the default input until next time a macro is run. I started out with declaring a public variable to keep the address Public LastDestination As Object Then I used this variable as default input in the list box If LastDestination Is Nothing Then Set DestinationCell = Application.InputBox( _ prompt:="Select Destination", Type:=8) Else Set DestinationCell = Application.InputBox( _ prompt:="Select Destination", Type:=8, Default:=LastDestination.Address) End If Set LastDestination = DestinationCell Challenge: I only get a "local" address, e.g. "B5", and not the full address with filename and sheetname included, e.g. [Book1]Sheet1!$C$5. Any hints? ExcelSwede |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can a cell remember a number?... | Excel Discussion (Misc queries) | |||
Why and How Does Excel Remember The Last Cell? | Excel Worksheet Functions | |||
Active Cell - Remember | Excel Programming | |||
How do I get a cell to remember the last entry and add to it? | Excel Discussion (Misc queries) | |||
Remember a cell | Excel Programming |