Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2010, 10:53 AM
PaulY PaulY is offline Macro question Windows 7 Macro question Office 2007
Novice
Macro question
 
Join Date: Dec 2010
Location: Hertfordshire, England
Posts: 3
PaulY is on a distinguished road
Default Macro question

Hi


I am very new to Office and in particular to Word Macros.

Using the record macro in word, I seem to be able to ask a question OK but if I just type the next question the all the questions are listed upon running the macro

I want to create a macro that when run asks a question, then pauses while you insert the answer, then asks the next question etc etc.

Would someone please explain in very plain English(!) if it can be done
Reply With Quote
  #2  
Old 12-22-2010, 11:21 PM
macropod's Avatar
macropod macropod is offline Macro question Windows 7 32bit Macro question Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Paul,

At its simplest:
Code:
Sub Demo()
Dim strQ As String
Question:
strQ = InputBox("What is the Question?", "Examiner")
If strQ <> "" Then GoTo Question
End Sub
but you need to say what you want done with each question!

Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro question Help with a macro Takket Word VBA 2 03-28-2014 04:58 PM
need a macro that does the following atomsk Word VBA 0 07-05-2010 07:29 AM
I need a macro, who can help me? Bahir Barak Word VBA 1 05-26-2010 12:24 AM
Macro help NEHicks503 Excel 0 04-16-2010 07:29 AM
Categories question & replying with attachment question glitzymama Outlook 0 03-15-2006 09:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:01 PM.


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