Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2015, 09:30 AM
SeattleITguy SeattleITguy is offline Taking input from InputBox from user Windows Vista Taking input from InputBox from user Office 2010 32bit
Novice
Taking input from InputBox from user
 
Join Date: Nov 2014
Posts: 7
SeattleITguy is on a distinguished road
Default Taking input from InputBox from user

Hello Everyone!

I want to take the text inputted from the user from the InputBox below and use that text as something to call on in the following IF statement.

The IF statement part of the code will filter different items depending on what the user inputs. I can provide that code if it helps give a better idea what I am trying to achieve.

(Forgive me if my post is incomplete/missing data/erroneous as I am very tired)

Code:
Sub wtf()

    BeginRow = 1
    EndRow = 120
    CUSTOMER = 18

InputMsg = "Which view would you like to use"
InputTitle = "Filter View"
DefaultText = "Management"
SpreadsheetTitle = InputBox(InputMsg, InputTitle, DefaultText)
ActiveCell.FormulaR1C1 = "Management"

msgbox (SpreadsheetTitle)

        If SpreadsheetTitle = "CUSTOMER" Then
            msgbox ("CUSTOMERZOR")
        Else
            msgbox ("Not CUSTOMER")
        End If


End Sub
Please let me know if I can provide any further info!

Cheers!
Reply With Quote
  #2  
Old 01-28-2015, 09:05 AM
SeattleITguy SeattleITguy is offline Taking input from InputBox from user Windows Vista Taking input from InputBox from user Office 2010 32bit
Novice
Taking input from InputBox from user
 
Join Date: Nov 2014
Posts: 7
SeattleITguy is on a distinguished road
Default

Figured out the issue myself.

The variable
Code:
SpreadsheetTitle
was the variable I needed.
Reply With Quote
Reply

Tags
filtering, input text, variables



Similar Threads
Thread Thread Starter Forum Replies Last Post
Taking input from InputBox from user vba: user input named argument andrew12345 Excel Programming 2 11-18-2014 08:18 AM
Taking input from InputBox from user User input to a variable on the document dsm1995gst Word VBA 1 09-03-2013 03:43 PM
Taking input from InputBox from user Replacing text with user input.?.?.? brad1977 Word 3 11-20-2012 10:20 AM
Taking input from InputBox from user Restricting User Input on a TextBox (and setting focus) joatmon Excel Programming 1 06-05-2012 03:01 PM
Look up an array based on user input johnsmb Excel 2 01-07-2011 01:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft