+ Reply to Thread
Results 1 to 3 of 3

Creating user prompted text boxes to fill out an excel sheet for an internship

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    1

    Creating user prompted text boxes to fill out an excel sheet for an internship

    Hello everyone,

    I am currently interning and i am trying to create an excel spreadsheet to automate the form filling process for one of my companys departments. I need to create a spread sheet that when you open it, automated text boxs pop up and prompt the user to answer a variety of questions which in turn will fill out different cells on the excell spreadsheet.

    My current macro code is :

    Sub TestMacro()
    Range("A2").Select
    ActiveCell.FormulaR1C1 = InputBox("Name")
    Range("B2").Select
    ActiveCell.FormulaR1C1 = InputBox("Project #")
    Range("C2").Select
    ActiveCell.FormulaR1C1 = InputBox("Date")
    Range("D2").Select
    ActiveCell.FormulaR1C1 = InputBox("Problem")
    Range("E2").Select
    ActiveCell.FormulaR1C1 = InputBox("Solution")
    End Sub

    I am seeking help on 2 more companents of the code.

    How do i code to fill out cells on a different sheet within the excel document?

    How do i prompt the macros to run as soon as the sheet is opened rather then me having to manually run the macro?

    ANy help would be greatly appreciated!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Creating user prompted text boxes to fill out an excel sheet for an internship

    If you want the code to run for every worksheet in the workbook, then something like this would work, in the Workbook module:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Creating user prompted text boxes to fill out an excel sheet for an internship

    If you only want to run the code for certain worksheets, you could adapt it to something like:

    Please Login or Register  to view this content.

+ 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] User prompted sheet name stored with quotations. I need them gone to be inputted into sub
    By grazian2 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-05-2013, 11:42 AM
  2. Excel Export to OLE Object with user prompted SaveAs HELP
    By leemanx in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2013, 12:31 PM
  3. Excel VBA to generate check boxes and restrict user to tick on the 3 boxes in a row
    By rhodalynn.rona in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2012, 05:55 AM
  4. Creating user form with drop down list boxes
    By Dannypak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2009, 12:13 PM
  5. Replies: 1
    Last Post: 07-31-2006, 05:23 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