+ Reply to Thread
Results 1 to 1 of 1

how to run a macro on windows server Microsoft Windows [Version 6.1.7600] in cmd prompt

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    hyd
    MS-Off Ver
    Excel 2003
    Posts
    1

    Exclamation how to run a macro on windows server Microsoft Windows [Version 6.1.7600] in cmd prompt

    Hi all,

    I have one vbscript that is working fine on my local mechine but it's not working on my server mechine
    my local mecine is:Microsoft Windows XP [Version 5.1.2600]
    my server mechine is:Microsoft Windows [Version 6.1.7600]
    How to run my vbs script on my server mechine or any othe way to run the macro in cmd prompt
    Iam using the following command to run my vbs script
    cscript my_vbs_mac.vbs

    my vbs script name is my_vbs_mac.vbs
    The following is the vbs script Iam using

    Set oExcel = CreateObject("Excel.Application")
    oExcel.Visible = False
    oExcel.Application.AutomationSecurity = 1
    oExcel.Application.ScreenUpdating = False
    oExcel.Application.DisplayAlerts = False
    Set objWorkbook = oExcel.Workbooks.Open("C:\Documents and Settings\users\ram\text.xls")
    oExcel.Run "my_mac"
    objWorkbook.Save
    objWorkbook.Close
    Set objWorkbook = Nothing
    Set oExcel = Nothing

    Please help me
    Thanks,
    Anumala
    Last edited by anumala369; 03-08-2012 at 12:18 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1