keldsor
Board Regular
- Joined
- Jun 9, 2017
- Messages
- 52
I want to gather an unkown number of childrens ID's from one sub to another as easy as posible - something like:
The setUpFamily ( .... ) is called something like this:
setUpFamily 26,27,"31-03-1931 i Hasle Sogn", 35,32,33,28,34 <<<<<<<< sometime more Id's for the children - here only 5 !
But I can't get it to work at all !
Code:
Public Sub setUpFamily(IdF As Long, IdM As Long, gift As String, ParamArray id()) <<<<<<<<<< FROM HERE !!!!!!!!!!!!!!!!!!!!!
danPar IdF, IdM, gift
lineUpChildrenTo IdF, IdM, id() <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< USING this !!!!!!!!!!!!
End Sub
Public Sub lineUpChildrenTo(IdF As Long, IdM As Long, ParamArray id()) <<<<<<<<<<<<<<<<< TO HERE
' Lines up the children to the right of the parents evenly spaced
(I have some working code here !!!!)
End Sub
The setUpFamily ( .... ) is called something like this:
setUpFamily 26,27,"31-03-1931 i Hasle Sogn", 35,32,33,28,34 <<<<<<<< sometime more Id's for the children - here only 5 !
But I can't get it to work at all !