Results 1 to 10 of 20

Thread: Re: Defining multiple variables in VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    14
    What's the point ?
    The result of an Inputbox is always a string.

    Code:
    Sub M_snb()
      S1 = InputBox("Enter first integer number:")
        S2 = InputBox("Enter second integer number:")
        S3 = 1 * S1 + S2
    
        MsgBox S3
    End Sub
    Last edited by snb; 03-13-2017 at 08:52 PM.

Similar Threads

  1. Replies: 2
    Last Post: 02-27-2019, 05:35 PM
  2. VBA To Compare Multiple Cells
    By x010 in forum Excel Help
    Replies: 4
    Last Post: 08-31-2013, 01:53 AM
  3. Populate Ribbon Controls On Load Dynamically Through VBA Variables
    By phxpoolplayer in forum Excel Ribbon and Add-Ins
    Replies: 1
    Last Post: 04-20-2013, 01:51 AM
  4. Replies: 2
    Last Post: 12-19-2012, 08:28 AM
  5. Split Range into Multiple Columns VBA
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 3
    Last Post: 03-07-2012, 10:53 PM

Posting Permissions

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