+ Reply to Thread
Results 1 to 2 of 2

Cannot add a value to any variables by using the "="sign"

  1. #1
    Registered User
    Join Date
    03-28-2024
    Location
    Primrose,Germiston. South Africa
    MS-Off Ver
    Microsoft Home and Office2 013
    Posts
    1

    Cannot add a value to any variables by using the "="sign"

    Hi every,
    My VBA macro do not add a value to my variables This is my code:

    Dim myVar As String
    myVar = "HELLO"
    MsgBox myVar
    End Sub

    It displays an empty Message box. I have debugged all other coding and it simply
    ignores the "="sign

    I hope you can help

    Thank you in advance.

    Dolly

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Cannot add a value to any variables by using the "="sign"

    If I copy that code snippet into VBA, I do not replicate the problem -- I get a message box with "Hello" in it. I can see nothing about this code snippet to cause the behavior you describe.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. [SOLVED] Delete the trailing sign "/ /" & merge number with "/" and cancel merged cells
    By abdo meghari in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2023, 06:44 AM
  2. [SOLVED] Return a "$" sign if there is any values inside the month, if not a "@" sign
    By Goodvibe in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-02-2021, 10:09 PM
  3. Replies: 8
    Last Post: 07-12-2017, 05:32 PM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. [SOLVED] Expanded and collapsed the rows by toggle "+" or "-" sign on left of the text
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-24-2013, 02:49 PM
  6. [SOLVED] How to insert + sign in front of every word =Substitute(A3," "," +")
    By inayet in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-16-2013, 09:41 PM
  7. Vlookup LEFT of the "^" sign, IF "^" is present in the string
    By ConstantinV in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-02-2013, 03:26 PM

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