Selection box to choose from list & insert string in a column

Marmot3292

New Member
Joined
Apr 5, 2019
Messages
20
Hi,

I am writing a code to create a file from an existing spreadsheet to be in the correct import format for another system.

The file can be created for different client accounts, call them Client A, Client B etc. although names are more complex than this, hence I want to use some form of validation. I want the code to give the user a prompt to choose the appropriate account from a pre-defined list, and then input their selection in a column for the file where there are data entries in the first column.

So far I have the below:

'7) Insert the Client ID from options

'Dim AccountList As Variant
'Dim AccountSelected As String

'AccountList = Array("Client ACFR", "Client BSRT", "Client PPTE")
'AccountSelected = SelectionBoxSingle(List:=AccountList)

'Range("G2").Select
'Do
'ActiveCell = AccountSelected
'ActiveCell.Offset(1, 0).Select
'Loop Until IsEmpty(ActiveCell.Offset(0, -6))


Does not work :(

Any help would be gratefully received.
 
I havent downloaded anything. I think that's the problem. Think I will leave this and try to find another option. Thanks for you help though.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
This is the site I thought you'd downloaded from ... you should be able to use this:

 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top