Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Help with subscript error

Hi,

Without seeing the line of code that fails it's difficult to be precise but
subscript out of range means (for example) your refererring to an object that
isn't there

Sheets("Sheet4").Range("A1").Value = 1

Gives subscript out of range if there isn't a sheet4.

Mike

"Paolo" wrote:

I have 6 worksheets with VBA code to create a months worth of worksheets
using 4 templates. I made some changes to the code and now I get runtime
error 9 subscript out of range. Each worksheets templates are different
slightly. It works on all but two. Any help is appreciated.
Can send code but it needs the templates to work.

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
runtime error 9, subscript out of bounds error #2 Janis Excel Programming 1 August 17th 07 11:54 PM
Runtime Error - Subscript out of range despite On Error statement DoctorG Excel Programming 3 July 28th 06 03:56 PM
Subscript out of range error - save copy error bg18461[_16_] Excel Programming 2 June 13th 06 04:53 PM
Subscript out of range error - save copy error bg18461[_15_] Excel Programming 1 June 13th 06 04:36 PM
Type Mismatch error & subscript out of range error Jeff Wright[_2_] Excel Programming 3 May 14th 05 07:14 PM


All times are GMT +1. The time now is 07:50 AM.

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"