Record Macro (Full Version)

All Forums >> [Web Development] >> Expression Web Help



Message


billyd380 -> Record Macro (9/21/2007 9:55:43)

I am write a macro so that if I hit Ctrl + T it will type out a sentance. I created this in Word just fine using the Record a Macro feature and everything worked. In EW it doesn't have the option to Record so I copied from the Word VB editor to the EW VB editor thinking everything would work fine, it didn't. When I run the macro it gives me an 424 run-time error and hilights this part in the code:

Selection.TypeText Text:= _
"sentence here"

Any ideas on what I can do to get this to work. It can't be very hard I'm just not knowledgable in VB enough to figure this stuff out. You guys have helped me before and I greatly appreciate it. Here is the whole script just incase there is something wrong.

Sub Video()
'
Selection.TypeText Text:="Sentence Here"
End Sub




treetopsranch -> RE: Record Macro (9/21/2007 18:58:00)

Yes many macros don't work when using one created in one program and trying to use that macro in another program. You wouldn't want to paste stuff from a Word macro into a web anyway. Lord knows what garbage you would bring into your web.

I don't use EW but found this on google:

"Open Expression Web and press ALT + F8 to open the Macro window. "

I would expect you would need to open your web first. Then do the alt + F8 and create your macro fresh.

Maybe you will get a better answer from the EW users here.





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125