+ Reply to Thread
Results 1 to 6 of 6

Converting VBA to VBScript

  1. #1
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Converting VBA to VBScript

    Hi,

    I am trying to convert some VBA I have that works to VBScript. I am hoping that someone might be able to give me a hand.

    Please Login or Register  to view this content.
    I am getting an error on the line with the RedFont.
    The error I am getting is: VBScript runtime error: Object required: 'Rows'

    TIA

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Converting VBA to VBScript

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Converting VBA to VBScript

    Hey thanks a lot Norie!

    It works perfectly now. [Sorry for the delay. Its Thanksgiving here in the States & I was eating dinner with the family.]

  4. #4
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Converting VBA to VBScript

    Hi again

    I figured everything out except for getting my script to pause while executing, but only if needed.
    This is what I was using.
    The Error I am getting is: VBScript runtime error: Object required: 'Application'
    Please Login or Register  to view this content.
    Does anyone have any suggestions?

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Converting VBA to VBScript

    Replace Application with the reference you have for the instance of Excel you are using earlier in the code, objExcel.

  6. #6
    Forum Contributor dlow's Avatar
    Join Date
    08-12-2013
    Location
    EveryWhere
    MS-Off Ver
    Excel 2007, 2010
    Posts
    275

    Re: Converting VBA to VBScript

    Perfect thanks again.

+ 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. Macro in VBScript
    By pushpita in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2014, 02:54 AM
  2. [SOLVED] Help converting VBA to VBscript....Lost
    By Tlandress in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2013, 06:14 AM
  3. I have a Question in VBScript..
    By anus in forum Excel General
    Replies: 2
    Last Post: 08-29-2013, 07:45 AM
  4. CSV/XLS via VBScript
    By Leonidars in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2012, 08:24 AM
  5. How to use autofilter in vbscript
    By Rashme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2011, 01:03 PM
  6. VBScript.RegExp
    By dschmitt in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-27-2010, 09:20 PM
  7. Please help with ADO and VBScript!
    By jenhu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2006, 01:10 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