Whilst trying to learn VBA for Acad and Inventor I was working on a routine (or other peoples routines I should say) for plotting from Acad. In trying to batch plot layouts I stepped though the code in the "SetLayoutsToPlot" example from the VBA help file. Therein I found 2 bugs one right after the other, in the block of code that reads thus: ' Prompt user for Layouts to plot For Each Layout In ThisDrawing.Layouts If MsgBox("Do you wish to plot the layout: " & Layout.name, vbYesNo & vbQuestion) = vbYes Then ArraySize = ArraySize + 1 ReDim AddedLayouts(1 To ArraySize) AddedLayouts(ArraySize) = Layout.name End If Next The question mark between "vbYesNo" and "vbQuestion" should be an addition sign, as it is now it will cause an "okOnly" to appear and so you can never get a "yes" answer to the dialog and nothing will be plotted. Even worse than this simple typo is the "ReDim" statement, calling this will clear out the contents of the array so that no layout names will be in it, just empty strings, except for the last layout name added when the for statement ends without doing the Redim.