BuffaloGuy
New Member
- Joined
- Dec 5, 2017
- Messages
- 42
- Office Version
- 365
- Platform
- Windows
I have a table where the first column is always full, and the next nine columns are empty and could fill on a case by case basis. I have a click button that asks to type the address in an input box that I want in cell L3 and after it is entered I have a second input box that would put the city, state, zip in L4. If you click the button again, the next should go in M3, M4 respectively and so on (the table is in K3:T4). I was just testing the getting the first one to work before getting the second set to work and I can't get that far with my current knowledge base. All help is welcome.
VBA Code:
Sub Location_Click()
Dim AddressStreet As Variant
Dim CityStateZip As Variant
AddressStreet = InputBox("Enter Business Address:")
Range("Notes!L3").Value = AddressStreet
CityStateZip = InputBox("Enter Business Address:")
Range("Notes!L4").Value = CityStateZip
End Sub