Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel macro - Range & Sheet name error

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

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel macro - Range & Sheet name error

Show the code.

--

HTH

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

"sjohns34 " wrote in message
...
I have created a macro for a friend. Here are the specs:

The wkrbook has 36 pages. Each page tracks 5 depart accounting entries
on the same page. (each page is for the day of the month entry for
each department) The information is then summaries for each department
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 by
using the active sheet rather than a sheet name and used range names to
identify each of the departments on the worksheet. The range names are
the same on each sheet.

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

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


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copied sheet causing duplicate range name error (Excel 2010) jgeniti Excel Discussion (Misc queries) 0 November 17th 11 04:55 PM
Macro error, range object need data? Daniel Charts and Charting in Excel 1 June 15th 07 11:27 AM
Macro Error when Sheet is Protected Johnny Excel Discussion (Misc queries) 4 July 28th 06 07:43 PM
macro on protected sheet-error michaelberrier Excel Discussion (Misc queries) 6 June 11th 06 06:31 PM
Excel Macro Problem, Add-in need to work in every workbook & Error:9 Subscript out of range Burak[_2_] Excel Programming 1 October 31st 03 08:09 PM


All times are GMT +1. The time now is 05:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"