duplicate declaration

  1. H

    Compile error: Duplicate declaration in current scope

    I have a workbook with multiple sheets. I'm trying to save each sheet as a separate workbook. Here's my code: ' Save each tab as a different workbook Dim wb As Workbook Sheets("728101").Copy Set wb = ActiveWorkbook With wb ActiveWorkbook.SaveAs...
  2. G

    Duplicate declaration error help

    Can anyone help with the following problem? I'm trying to rename a sheet, perform some actions, rename another sheet & then perform some other actions, all in the same module. I keep getting a 'duplicate declaration' error relating to the xStr & retry: entries in the code, obviously because...

Some videos you may like

This Week's Hot Topics