View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mdmaremont mdmaremont is offline
external usenet poster
 
Posts: 1
Default Macros in PERSONAL.XLS

Excel 2003; Windows XP OS. I have a series of macros in my PERSONAL.XLS
workbook that create a number of different pivot tables. I can't set up to
run automatically, as I must create the datatables daily and they are a
different size each day. The macros must be executed in the order they were
created or they 'bomb'. When I look at the VBA code, each different macro
contains a numbered pivottable reference, reflecting its creation order (e.g.
PivotTable3). Is there a way to make the references valid regardless of the
order in which they are executed?