Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I get this to work is MS word 2007?

Im new to scripting I tried using the macro recorder, but to no avail. I did manage to write a hello world script though. Any help would be appreciated. This is for my direct mail campaigns to make my own hand written font look more like real hand writing. Thanks for your time.

Set objWord = CreateObject("Word.Application") objWord.Visible = True

Set objDoc = objWord.Documents.Open("C:\Scripts\Test.doc")

Set objRandom = CreateObject("System.Random")

intLow = 1 intHigh = 5

Set objRange = objDoc.Range() Set colCharacters = objRange.Characters

For Each strCharacter in colCharacters intRandom = objRandom.Next_2(intLow,intHigh)

Select Case intRandom
    Case 1 strCharacter.Font.Name = "Arial"
    Case 2 strCharacter.Font.Name = "Times New Roman"
    Case 3 strCharacter.Font.Name = "Courier New"
    Case 4 strCharacter.Font.Name = "Forte"
End Select

Next

3 comments

0

sorry buddy this is for RBXM.Lua

0

So I am in the wrong area for this post ?? Is this out of the scope of what this site is about ?? Do you know were I mite be able to get some help to make this script work some where else besides this site. thanks.

0

You might wanna remove the code from your blurb (Activation code for Scripting Helpers)

3 answers

Woah buddy, this is for ROBLOX coding errors. Not this stuff.

This is for Roblox LUA script. And no, there is no other spot on the website for other scripts.

This discussion is preserved as it was. New answers, comments, and votes are closed.