Apr 10 2020 01:42 PM
I've written vba code that includes the declared variable...
Dim PB_Donors As Integer
I'm now testing a Function that will return the following variables
GroupCountName As String
GroupCount As Integer
This function will typically returns the following...
GroupCountName = "PB_Donors"
GroupCount = 1
I need to transfer these returned results somehow into my declared variable PB_Donors.
Can anyone help? Thanks so much.
Apr 11 2020 11:29 AM - edited Apr 11 2020 11:30 AM
Have a few doubts.
The declared variable is an integer.
If you want to send the final value to PB DONORS, why don't you declare it at module level or public i.e. project level variable.
The output of first function is a string.What you want to do with that string. PB Donors is not going to take String as input as you have explicitly declared it.
Apr 16 2020 11:11 AM - edited Apr 16 2020 11:12 AM