+ Reply to Thread
Results 1 to 7 of 7

refer an activex textbox

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    43

    refer an activex textbox

    earlier i was using the default name of textbox and following code was workin perfectly

    Please Login or Register  to view this content.
    But i want to refer to use a user defined name DEKHO1

    but the above code is not working ......
    Please Login or Register  to view this content.
    what is the correct way to do it???

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: refer an activex textbox

    ActiveSheet.DEKHO1.Text = "Blah"
    Elegant Simplicity............. Not Always

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: refer an activex textbox

    first guess would be that the name of the control and the name used in code is not the same.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: refer an activex textbox

    what do you mean by "user defined name"? if it's a variable remove the quotes
    Josie

    if at first you don't succeed try doing it the way your wife told you to

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

    Re: refer an activex textbox

    The second code works, provided you have named the textbox 'DEKHO1' and the correct sheet is active.
    If posting code please use code tags, see here.

  6. #6
    Registered User
    Join Date
    02-20-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: refer an activex textbox

    Thanks A lot "AndyLitch" got what i needed

  7. #7
    Registered User
    Join Date
    02-20-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: refer an activex textbox

    hey what would be the syntax if I want to store name of textbox in a variable i.e.
    in place of 'DEKHO1' i want to use a variable xyz = "DEKHO1" .

    Please Login or Register  to view this content.
    does not work .....what to do???
    Last edited by pankajy18; 04-10-2013 at 12:27 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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