Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7829879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:57:08+00:00 2026-06-02T10:57:08+00:00

I am looking to create a sort of Quiz using Powerpoint and I would

  • 0

I am looking to create a sort of Quiz using Powerpoint and I would like to save the input given by the user.

For example: If I ask the question: What is your favorite color? When they answer the question and click the next button, I would like to save the value of the textbox and append it to an output file.

I already know how to get the value and write the value to a file.

What I am looking to do is a sort of loop.

Here is the pseudo-code:

foreach(Control c in CurrentSlide.Controls)
{
     File.Append(c.Value);
}

This way, no matter what controls are on the form, I want to save the value of each and every control.

Is this possible in VBA? If not, do you have any generic solutions for this situation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:57:10+00:00Added an answer on June 2, 2026 at 10:57 am

    Here’s a more generic way of checking for each control on the slide, w/o knowing in advance how many there’ll be. This assumes that you’ve kept the default names assigned to control shapes (TextBox1, CheckBox1 and so on). If you want to change those, you’ll need to be sure that each TextBox has a name that includes at least one bit of string that’s unique to it and change the code accordingly. Siddarth has already supplied code for writing to files and you said you have that under control so I’m just Debug.Printing the values here to keep the example simple.

    Sub TestIt()
        ' Run this to test the shapes on slide 1
        ProcessTheSlide ActivePresentation.Slides(1)
    End Sub
    
    Sub ProcessTheSlide(oSl As Slide)
    
        Dim oSh As Shape
    
        For Each oSh In oSl.Shapes
            ' Is it a control?
            If oSh.Type = 12 Then  ' msoOLEControlObject
                On Error Resume Next
                With oSh.OLEFormat.Object
                    If InStr(.Name, "TextBox") > 0 Then
                        Debug.Print .Text
                    End If
                    If InStr(.Name, "CheckBox") > 0 Then
                        Debug.Print .Value
                    End If
    
                End With
            End If
        Next
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im looking to create a control that would look like comic baloon. In WPF
I would like to create a virtual drive for windows. I'm not looking to
I would like to create a number like: 000000000001 to save to the database.
I'm looking to create a PHP script where, a user will provide a link
I am looking for some help on how to create the sort of URL-rewriting
How to create digital clock using PHP (london time zone) sample clock Am looking
I'm looking for a function that would sort chars in varchar2 alphabetically. Is there
I'm looking to create my own custom Sort By Date and Sort By Number
I’m looking for some information regarding how I would create a demo period in
I'm looking to create a sort of HashMap class in PHP. For the sake

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.