Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default subscript out of range

Whats wrong with the below code? I am getting the error subscript out of
range.

Worksheets("Reps Current").Range("H1").Value = "= (Total" & IndxNumber & " -
'On Time " & IndxNumber & "')/ Total" & IndxNumber



Todd Huttenstine


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default subscript out of range

The subscript out of range is probably not having a
a worksheet named "Reps Current" spaces have to
match exactly you could have spaces at the end, but I
don't know what the rest of it is and if it is a formula
you probably want .formula = instead of .value =

=(Total3 - 'on Time 3')/Total3
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Todd Huttenstine" wrote in message ...
Whats wrong with the below code? I am getting the error subscript out of
range.

Worksheets("Reps Current").Range("H1").Value = "= (Total" & IndxNumber & " -
'On Time " & IndxNumber & "')/ Total" & IndxNumber



Todd Huttenstine




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
Subscript out of Range Steve Excel Discussion (Misc queries) 3 April 15th 09 04:01 PM
Subscript out of range? Jason Hancock Excel Programming 3 May 26th 04 07:11 PM
Subscript out of range Ed Excel Programming 1 February 5th 04 07:17 PM
SubScript Out Of Range. Sam Excel Programming 4 December 21st 03 02:10 AM
Subscript Out of Range John Wilson Excel Programming 2 September 7th 03 04:07 AM


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"