View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
MLK MLK is offline
external usenet poster
 
Posts: 81
Default Question about private subs

I have worksheet that I want to trigger a macro when a user selects a value
from a pivot table.

For the most part, the macro works fine except I also want to delete a range
of rows within a different tab in the workbook, but in the macro when I
switch to the other tab and set the range to delete, I get a "Run-time error
1004 - Application defined or object defined error".

Am I not able to access another tab from private sub?

Any help would be greatly appreciated.

Thanks, Mary-Lou