+ Reply to Thread
Results 1 to 3 of 3

Put variable in another variable

  1. #1
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Put variable in another variable

    I have this variable defined:
    Please Login or Register  to view this content.
    In a module i came to the end with:
    Please Login or Register  to view this content.
    Although since i went to this with a .find function, excel thinks NrColIdBDC is a text, how can i make it look for NrColIdBDC.variable

    Is there such a function i can put:
    PrimeiraColunaSearch = look variable number for PrimeiraColunaSearch

    Hope someone can help me, i'm stuck :/

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Put variable in another variable

    Hi,

    Just to be clear you haven't created a variable you've created a Constant. Big difference.
    Furthermore you've defined the constant to be a string, i.e. text. If you want the Constant to be a number then use

    Instead use:
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: Put variable in another variable

    Still with the same

    Gives me problem here:
    Please Login or Register  to view this content.
    PrimeiraColunaSearch instead of be 1, is "NrColIdBDC"

+ 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: 5
    Last Post: 06-18-2015, 09:10 AM
  2. Replies: 3
    Last Post: 02-17-2015, 11:53 PM
  3. Open variable name workbook & vlookup to find that variable named wookbook
    By vh_llc@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2014, 07:49 PM
  4. Replies: 4
    Last Post: 07-12-2013, 12:14 PM
  5. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  6. Replies: 3
    Last Post: 11-21-2012, 03:28 PM
  7. Replies: 1
    Last Post: 10-27-2012, 02:54 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