Consulting

Results 1 to 7 of 7

Thread: Macro to copy and paste answers from the end of the document

  1. #1

    Macro to copy and paste answers from the end of the document

    Dear Friends,

    Need your help with a suggestion for a macro to copy and paste answers from the end of the document to the end of the relevant question. I have around 200 such questions in a document and it would be great if any one could suggest a macro or any solution for this. I am not good at programming hence need your help with this. Any help would be greatly appreciated. The structure of the document is as follows.

    MY DOCUMENT CONTAINS QUESTIONS AT THE TOP AND ANSWERS AT THE END AS FOLLOWS:

    Q1
    Summer is very hot.

    a. Summer
    b. Very
    c. Hot
    d. Is


    Q2
    The moon looks so beautiful.

    a. Looks


    b. Moon
    c. The
    d. Beautiful
    .
    .
    .
    .
    .

    Answers:
    1. a - Summer
    2. b - Moon
    .
    .
    .
    .

    OUTPUT FROM THE MACRO SHOULD COMBINE THE QUESTION AND THE RELEVANT ANSWERS AS FOLLOWS.

    Q1
    Summer is very hot.

    a. Summer
    b. Very
    c. Hot
    d. Is

    Answer: a
    Summer

    Q2
    The moon looks so beautiful.

    a. Looks
    b. Moon
    c. The
    d. Beautiful

    Answer: b
    Moon



    Thanks,
    Sam

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    is there a "good" solution provided on those "cross-posted" forums?
    if there is such thing as cross-posting, can there be a case for cross-answering, coz on
    all those forums you are there also, trying to block any answers to the OP.

    to the OP there is a program call SchoolhouseTest.
    you can export your questionnaire (and the answer)
    to Aiken text format that you can import to LMS services
    such as Moodle.
    Snap13.jpg
    Last edited by arnelgp; 02-22-2022 at 05:03 AM.

  4. #4
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Quote Originally Posted by arnelgp View Post
    on all those forums you are there also, trying to block any answers to the OP.
    Kindly don't lie about my posts here and elsewhere...
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Thank you, Arnelgp. Really appreciate you taking time out to respond with screenshots. I will try it out.

    Sorry about the cross-posting, I was not aware of the clause.

    - Sam

  6. #6
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Quote Originally Posted by punk12345678 View Post

    Sorry about the cross-posting, I was not aware of the clause.

    - Sam
    Well Sam, that statement of yours is somewhat unbelievable. Everyone of those forums you posted in all have the same or very similar rule about cross posting. What people like you don't understand is that the VBA community is quite small and members here are often members elsewhere. Any post could quite well be noticed across many forums, and in this case you have been found to be less than truthful. Its your reputation but right now its not that well regarded.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  7. #7
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    This thread is now closed.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Tags for this Thread

Posting Permissions

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