Excel macro - Range & Sheet name error

  • Thread starter Thread starter sjohns34
  • Start date Start date
S

sjohns34

I have created a macro for a friend. Here are the specs:

The wkrbook has 36 pages. Each page tracks 5 depart accounting entrie
on the same page. (each page is for the day of the month entry fo
each department) The information is then summaries for each departmen
on a summary sheet. The format of each page is exactly the same.

Macro:
I wrote a relative macro to work on each worksheet in the wrkbook b
using the active sheet rather than a sheet name and used range names t
identify each of the departments on the worksheet. The range names ar
the same on each sheet.

Problem:
The macro was working but now it crashes on the range names and th
sheet name. I get an error 9. Can anyone tell me if this was th
incorrect approach or how to error proof the macro.

ps...I would have personally used access to achieve this goal
 
Show the code.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top