Hi I have a visual basic code that adds items to the layout view as north, legend, scalable bar. and also images, then select a state then zoom to selected features and then create a layer from selected features and the latter is exported as a. pdf I need is to have a button that when clicking generate. pdf files of each state Eg Mexico has 32 ??????states must generate 32. pdf. I have the code ready but do one by one. I write in a textbox key state i add items and make a layoutview generated. pdf but I need something like a "for" to generate all states by simply clicking a button. someone who can help me?