Consulting

Results 1 to 13 of 13

Thread: Problem Evaluate Variables

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Newbie
    Joined
    Dec 2021
    Posts
    5
    Location

    Lightbulb Problem Evaluate Variables

    sub Test()
    
    dim Variable1 as String
    dim Variable2 as String
    
    range("a1").value="Variable1"
    
    Variable1="Hello Word"
    Variable2=Evaluate(range("a1").value)
    
    msgbox Variable2 
    
    end if
    Evaluate dont work.

    in cell a1 I have the text variable1


    I want variable2 to be assigned the value of the variable written in a1


    I have tried various ways and have not succeeded, any ideas?
    Last edited by Bob Phillips; 12-28-2021 at 07:18 AM. Reason: Add code tags

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •