+ Reply to Thread
Results 1 to 4 of 4

use variable's value as the variable name

  1. #1
    Registered User
    Join Date
    08-10-2014
    Location
    Iligan City, Philippines
    MS-Off Ver
    Office 2010
    Posts
    5

    use variable's value as the variable name

    Hello!

    I've been trying to find a way through this but still unable to. Hopefully there is a way, please! I have posted in another forum but I got a different answer from them.

    http://www.ozgrid.com/forum/showthre...555#post726555

    I'm trying to do this (with VBA in macro):

    Please Login or Register  to view this content.
    how do we do this? Help!

    Thank you.
    Last edited by Isabel007; 09-17-2014 at 01:00 AM.
    Regards, Isabel

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: use variable's value as the variable name

    Hi, Isabel007,

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.ozgrid.com/forum/showthre...555#post726555

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,294

    Re: use variable's value as the variable name

    Quote Originally Posted by Isabel007 View Post
    how do we do this?
    You don't, as cytop already told you. It simply won't work in VBA.
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    08-10-2014
    Location
    Iligan City, Philippines
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: use variable's value as the variable name

    My apologies, Holger. I've edited it. Thanks.

    Thanks Rory.

+ 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. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  3. Replies: 3
    Last Post: 11-21-2012, 03:28 PM
  4. Replies: 1
    Last Post: 10-27-2012, 02:54 AM
  5. variable in to input data into variable named sheet and if does not exist create
    By rwhidden in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2011, 12:08 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