VBScript, how to use variable as textbox id?

Posted on 2009-04-27
Last Modified: 2012-05-08
I have set up my code to dynamically generate the id of a textbox on a grid that I have from a series of variables. But, once the textbox id is generated I cannot seem to use it. It's seen as a string and I have no idea how to tell it otherwise.

The code below generates the error:
Object required: '[string: "intended_textbox_id"]'

Set box = partA & partB & partC & "/" & partD

Set content =

MsgBox content

Open in new window

Question by:humetp
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    What about (I'm not sure which one is right):
      -- or --
      -- or --

    Open in new window


    Author Comment

    Everyone ends up with the error: Expected end of statement.
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    Is this for a web page?

    Accepted Solution

    Turned out to be...

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    This is an addendum to the following article: Acitve Directory based Outlook Signature ( The script is fine, and works in normal client-server domains…
    When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now