Computing.Net > Forums > Programming > Batch File- Current Date in Excel

Batch File- Current Date in Excel

Reply to Message Icon

Original Message
Name: Spiderman
Date: July 25, 2008 at 14:25:55 Pacific
Subject: Batch File- Current Date in Excel
OS: Windows XP
CPU/Ram: 1 GB
Model/Manufacturer: Dell
Comment:

Hello,
I need a batch file that places current date and time in different cells in an excel worksheet. Currently I am using this code: echo %date% %time%>datelog.xls, but it places the date and time in the first cell.Anyway of doing this?
Thank you for your answer!

Keep trying!


Report Offensive Message For Removal


Response Number 1
Name: ghostdog
Date: July 26, 2008 at 04:47:53 Pacific
Reply: (edit)

to program excel, you need vbscript/VBA. Not DOS. A simple example


Set objExcel = CreateObject("Excel.Application")

objExcel.Visible = True
objExcel.Workbooks.Add
objExcel.Cells(12, 1).Value = "value"



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Batch File- Current Date in Excel

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge