+ Reply to Thread
Results 1 to 5 of 5

VB Script to save Thisworkbook with changes

  1. #1
    Registered User
    Join Date
    10-28-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2013
    Posts
    37

    VB Script to save Thisworkbook with changes

    Hello All,

    I have a vba macro which I need to trigger using VB script and it is working so far good, but only road block is it is not saving the thisworkbook with the changes.

    I have some data which will be saved in the different sheets of thisworkbook and this works fine when run manually but when I try to run through vb script it does not save.


    Below is the vb script i'm using
    Please Login or Register  to view this content.
    Below code which I'm using in my module to save the workbook
    Please Login or Register  to view this content.
    Any help would be appreciated!!!

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: VB Script to save Thisworkbook with changes

    Try this way:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-28-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2013
    Posts
    37

    Re: VB Script to save Thisworkbook with changes

    Thanks kasan, but unfortunately this script don't even run the macro.

  4. #4
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: VB Script to save Thisworkbook with changes

    delete row "ExcelMacroExample"

  5. #5
    Registered User
    Join Date
    10-28-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2013
    Posts
    37

    Re: VB Script to save Thisworkbook with changes

    Its strange, the code you provided does not trigger the macro at all, but if I use the older one it works fine.

    Below is the code which I'm using currently and it does not work.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Save as Script
    By Lonney in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2015, 08:32 PM
  2. Excel vba code disappears from Thisworkbook when save as workbook is reopened
    By ray.kanata in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-14-2015, 03:00 PM
  3. Replies: 3
    Last Post: 05-14-2013, 08:53 AM
  4. Save As Macro Script
    By Neal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-28-2006, 11:10 AM
  5. Install ThisWorkbook and Module1 files with batch script
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2005, 10:05 AM
  6. Replies: 1
    Last Post: 07-16-2005, 11:05 AM
  7. [SOLVED] VBA Script for copy and paste to save
    By tamato43 in forum Excel General
    Replies: 3
    Last Post: 05-17-2005, 04:06 PM

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