I have been search for all day now and am unable to find sample code that uses the variables/fiels from a table as the arguments for a function in VBA.
I am creating a VBA function to put the contents of a table/ query directly in a graph object on a powerpoint slide.
For this to work a bit userfriendly I want to define the parameters in a table and use that table as input to generate the powerpoint.
My question is how I can use the complete recordset of a table and use each row to fill an individual graph on a poweropintslide
I'm really not skilled to program VBA myself, I can only recode sample code to my needs. So if someone could help me out with a really simple example, that would be great!
I am creating a VBA function to put the contents of a table/ query directly in a graph object on a powerpoint slide.
For this to work a bit userfriendly I want to define the parameters in a table and use that table as input to generate the powerpoint.
My question is how I can use the complete recordset of a table and use each row to fill an individual graph on a poweropintslide
Code:
' Example input which I want to replace by the table recordset:
FillGraph "15", "S15G1", "MedeKL", "IP", "QRYKlassen", "Omvang van het kantoor"
FillGraph "16", "S16G1", "MedeKL", "", "QRYKlassenSegment", "Omvang van het kantoor"
' Which is sent into the following function
Function FillGraph(SlideNr As Integer, ShpID As String, Variabele As String, marktfilter As String, QueryFunctie As String, GraphTitle As String)
I'm really not skilled to program VBA myself, I can only recode sample code to my needs. So if someone could help me out with a really simple example, that would be great!