Here is my current code. Everything works right except for the data in the second prompt. I can't get it to read from the dimension that is picked in the first prompt. It chooses the proper dimension to change in the report(I counted how many lines down), but it does not populate the dropdown properly.
Sub Main
Dim objPPRep as Object
Dim objPDF as Object
Dim Options as Integer
Dim CatList as Object
Dim DimIndex as Integer
Dim DropListBox1() as String
Dim DropListBox2() as String
Dim msgtext as String
'*** Opens report ***
Set objPPRep = GetObject("J:\Prompt Test.ppr"

objPPRep.Visible = True
objPPRep.ExplorerMode = False
'*** Reads dimensions and creates DropList box ***
Options = objPPRep.DimensionLine.Count
ReDim DropListBox1(Options - 1)
For x=0 to (Options - 1)
DropListBox1(x) = objPPRep.DimensionLine.Item(x+1).Name
Next x
Begin Dialog UserDialog 186, 62, "Dimension Filter"
Text 8, 4, 42, 8, "Select Dimension:" , .Text3
DropListBox 8, 16, 95, 44, DropListBox1(), _
.DropListBox1
OKButton 124, 6, 54, 14
CancelButton 124, 26, 54, 14
End Dialog
Dim Dimension as UserDialog
On Error Resume Next
Dialog Dimension
'*** Sets selection to correct index value ***
DimIndex = Dimension.DropListBox1 + 1
'*** Dropdown box to select category to filter ***
Options = objPPRep.DimIndex.Count
ReDim DropListBox2(Options1 - 1)
For x=0 to (Options1 - 1)
DropListBox2(x) = objPPRep.DimIndex.Item(x+1).FilterName
Next x
Begin Dialog UserDialog1 186, 62, "Category Filter"
Text 8, 4, 42, 8, "Select Category:" , .Text3
DropListBox 8, 16, 95, 44, DropListBox1(), _
.DropListBox2
OKButton 124, 6, 54, 14
CancelButton 124, 26, 54, 14
End Dialog
Dim Dimension1 as UserDialog1
On Error Resume Next
Dialog Dimension1
'*** Sets selection to correct index value ***
FilterName = Dimension1.DropListBox2 + 1
'*** Changes dimension ***
objPPRep.DimensionLine.Item(DimIndex).Change(FilterName)
If Err=102 then
MsgBox "Dialog box canceled."
End If
End Sub