LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Activeworkbook.range --- Not supported by VBScript?

Hi all,
I have a small script running at each startup and shutdown.
At the runtime, it gives error that --- Object doesn't support this property or
method; 'Activeworkbook.range' <---
Any Help is appreciated.
Regards,
Shetty.

So far I have the following.

Dim objXL
Dim objWkB
Dim i
Dim Dr

Set objXL = wscript.CreateObject("Excel.Application")
objXL.Visible = False
Set objWkB = objXL.WorkBooks.Open("c:\123\time.xls")

objXL.activeworkbook.Range("A65536").End(xlUp).Off set(1, 0).select
objXL.activeworkbook.ActiveCell.Value = Date
objXL.activeworkbook.ActiveCell.Offset(0, 1).Value = Time

objXL.activeworkbook.save
objXL.activeworkbook.Close' Close WorkBook
objXL.Visible = True
objXL.Quit 'Quit Excel
 
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
Is NETWORKDAYS Supported in Excel to Web Page? PatrickA Excel Worksheet Functions 1 May 31st 09 07:01 AM
format not supported error Randaddyz Excel Discussion (Misc queries) 1 January 14th 08 11:33 PM
Maximum amount of macros supported Bror Excel Discussion (Misc queries) 2 August 19th 06 03:10 AM
ActiveWorkbook.Protect password:=range("rangename") does not work WimR Excel Discussion (Misc queries) 1 June 26th 05 08:47 AM
Sent to printer - Resolution not supported. clueless Excel Discussion (Misc queries) 0 May 11th 05 04:50 AM


All times are GMT +1. The time now is 03:04 AM.

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"