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

right then, i have this:

Sub totalsend()
Dim rownum As String
Dim Tday As String


Tday = Format(Date, "YYYY_MM_DD")


ActiveWorkbook.SaveAs FileName:="\\testsrv\XXXXX\" & (Tday) & ".xls"
Workbooks.Open FileName:="\\testsrv\XX\XX\totals.xls"
Windows("totals.xls").Activate
ActiveWindow.WindowState = xlMaximized
Sheets("Totals").Select
Sheets("Totals").Move After:=Workbooks(Tday).Sheets(3)


yesterday i was making this on excell 97, today im using 2003 (woo hoo the
office finaly upgraded)

this worked before, i see no problem i am 100% sure its not spelling (the
same cannot however be said for this post) ifi hover over the Tday function
it gives the date so i know its refferancing the right thing


its going to be a set of brackets or a missing " i know it
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default subscript out of range new!

never mind!

2003 needs the .xls after the Tday

97 didnt

all sorted!

"tigoda" wrote:

right then, i have this:

Sub totalsend()
Dim rownum As String
Dim Tday As String


Tday = Format(Date, "YYYY_MM_DD")


ActiveWorkbook.SaveAs FileName:="\\testsrv\XXXXX\" & (Tday) & ".xls"
Workbooks.Open FileName:="\\testsrv\XX\XX\totals.xls"
Windows("totals.xls").Activate
ActiveWindow.WindowState = xlMaximized
Sheets("Totals").Select
Sheets("Totals").Move After:=Workbooks(Tday).Sheets(3)


yesterday i was making this on excell 97, today im using 2003 (woo hoo the
office finaly upgraded)

this worked before, i see no problem i am 100% sure its not spelling (the
same cannot however be said for this post) ifi hover over the Tday function
it gives the date so i know its refferancing the right thing


its going to be a set of brackets or a missing " i know it

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default subscript out of range new!

Change
Sheets("Totals").Move After:=Workbooks(Tday).Sheets(3)
' to
Sheets("Totals").Move After:=Workbooks(Tday & ".xls").Sheets(3)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)


"tigoda" wrote in message
...
right then, i have this:

Sub totalsend()
Dim rownum As String
Dim Tday As String


Tday = Format(Date, "YYYY_MM_DD")


ActiveWorkbook.SaveAs FileName:="\\testsrv\XXXXX\" & (Tday) & ".xls"
Workbooks.Open FileName:="\\testsrv\XX\XX\totals.xls"
Windows("totals.xls").Activate
ActiveWindow.WindowState = xlMaximized
Sheets("Totals").Select
Sheets("Totals").Move After:=Workbooks(Tday).Sheets(3)


yesterday i was making this on excell 97, today im using 2003 (woo hoo the
office finaly upgraded)

this worked before, i see no problem i am 100% sure its not spelling (the
same cannot however be said for this post) ifi hover over the Tday
function
it gives the date so i know its refferancing the right thing


its going to be a set of brackets or a missing " i know it



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
what does 'Subscript Out of range' mean?? Gary Excel Worksheet Functions 2 March 22nd 07 01:33 AM
Subscript out of range z00h Excel Programming 5 March 7th 06 04:08 PM
Subscript out of range teresa Excel Programming 1 December 14th 04 09:56 PM
Subscript out of range Stacy Haskins[_2_] Excel Programming 4 April 10th 04 05:41 AM
SubScript Out Of Range. Sam Excel Programming 4 December 21st 03 02:10 AM


All times are GMT +1. The time now is 07:10 PM.

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

About Us

"It's about Microsoft Excel"