View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
comparini3000 comparini3000 is offline
external usenet poster
 
Posts: 22
Default referring to workbook

i forgot to add this to my other post, but since the workbook and sheet was
not specified, excel will assume it's the current workbook and current sheet,
meaning when you run the macro, it's only going to affect the selected sheet.

also, change the line
dim rng, rcell as range to
dm rng as range, rcell as range