(Solved) – Can I simultaneously declare and assign a variable in VBA?

  • by
(solved)-–-can-i-simultaneously-declare-and-assign-a-variable-in-vba?

I’m new to VBA and want to know if I can convert the following declaration and assignment into one line:

Dim clientToTest As String
clientToTest = clientsToTest(i)

or

Dim clientString As Variant
clientString = Split(clientToTest)

Leave a Reply

Your email address will not be published. Required fields are marked *