+ Reply to Thread
Results 1 to 3 of 3

merge string and variable into property

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    2

    merge string and variable into property

    Hi

    I have a table in a UserForm consisting of several TextBoxes. All TextBoxes in one column have the same caption and are numbered consecutively from 1 to 12 [ColumnName]Textbox[ROW]. I want to store the values in variables (also numbered from 1 to 12) depending on how many rows are used by the user and started to solve this part with "Loop Until" and arrays:

    Please Login or Register  to view this content.
    I have the problem that combining the TextBox caption + j (row number) + ".value" is not recognized as property but as string. How can I solve this and combine these parts correctly?

    Many thanks!

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: merge string and variable into property

    Normally, you would do something along the lines of:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-22-2013
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: merge string and variable into property

    Works perfectly fine - thank you!!

+ 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. Replies: 4
    Last Post: 07-12-2013, 12:14 PM
  2. [SOLVED] Using a Variable in Range Property
    By Gard5096 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 12-24-2012, 12:13 PM
  3. [SOLVED] Use variable property name
    By konfis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2012, 06:20 AM
  4. Transferring a dynamically named string variable to another string variable.
    By Concorde Rules in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2012, 04:08 AM
  5. Email Merge with variable merge records break by client level
    By sss047 in forum Word Formatting & General
    Replies: 0
    Last Post: 04-15-2011, 04:25 AM

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