Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 05-08-2018, 05:02 AM
sarah2020 sarah2020 is offline Randomize Questions Order Windows 10 Randomize Questions Order Office 2016
Novice
Randomize Questions Order
 
Join Date: Mar 2018
Posts: 15
sarah2020 is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
This would work adequately if you selected the paragraphs before running the macro.
Code:
Sub RandomiseParas()
  Dim aPar As Paragraph, i As Integer
  For Each aPar In Selection.Paragraphs
    i = Rnd() * 1000
    aPar.Range.InsertBefore Format(i, "000") & vbTab
  Next aPar
  Selection.Sort ExcludeHeader:=False, FieldNumber:="Paragraphs", _
      SortFieldType:=wdSortFieldAlphanumeric, SortOrder:=wdSortOrderAscending, _
      Separator:=wdSortSeparateByTabs
  WordBasic.ToolsBulletsNumbers Replace:=0, Type:=1, Remove:=1
End Sub
Thanks; no way to be done without Macro?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPT VBA Questions davidmorse PowerPoint 0 03-06-2018 09:35 PM
randomize numbers. help me defeat plagiarism! physicsphilosopher Word VBA 9 03-23-2017 10:08 PM
Randomize Questions Order Questions S_jt_C Word 1 12-05-2015 04:35 PM
Randomize Animations? idprincess03 PowerPoint 1 12-13-2012 06:57 AM
Few questions...needs some help! Wolf.Stalker Outlook 1 02-21-2012 09:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:19 PM.


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