Results 1 to 2 of 2

script to run the macro from Vb script with out opening the excel file

Threaded View

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    8

    script to run the macro from Vb script with out opening the excel file

    i have the rewuirement like runing the excel macro with out opening the excel file so i have written the following code it is working fine but the excel file is opening , which should not happen.
    Dim objExcel
    Set objExcel = CreateObject("Excel.Application")
    With objExcel
      .Workbooks.Open ("U:\test.xlsm")
      .Visible = True
      .Run "testing"
      .ActiveWorkbook.Close(True)
      .Quit
    End With
    can any one pls advice.
    Last edited by chandanp; 02-21-2014 at 04:49 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel Macro for launching script file to AutoCAD
    By Vinod Trivedi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2012, 05:15 AM
  2. Integrating Mainframe emulator script with excel's vba script
    By Himanshu Mishra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2012, 10:30 AM
  3. Create VBA script to short, dedicated button in excel for script?
    By realized in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2009, 11:54 PM
  4. Opening an excel file using a script
    By matpj in forum Excel General
    Replies: 3
    Last Post: 05-08-2006, 05:30 PM
  5. [SOLVED] VBA Script in Excel Stalls Out On It's Own After Opening Secondary Excel File
    By SilentThunder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2005, 06:05 PM

Tags for this Thread

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