Reply
VB script: move six lines down
Old 04-21-2006, 04:54 AM VB script: move six lines down
Thort's Avatar
Novice Talker

Latest Blog Post:
A Bee and a White Wagtail
Posts: 14
Location: Sweden
Hi !

Now I am out on deep water. I know nothing about Visual Basic, yet I'm trying to build a script which enables me to move six lines down in a document.

My web page editor HomeSite 4.5.2 has the option to add vb-scripts. The script will make it easier for med when using my html template.

Now, I created a macro in MS Word. Then I created a vb-script-file from this macro. My thought was to insert this script into HomeSite. But I failed. When running the script in HomeSite I get an error message saying: "The method main was not found in the script".

Here is the script:

Sub move_six_lines_down()

Selection.MoveDown Unit:=wdLine, Count:=6
End Sub


Could someone please help me build this script?
__________________
Thor

Thor's Photoblog
Thort is offline
Reply With Quote
View Public Profile Visit Thort's homepage!
 
When You Register, These Ads Go Away!
     
Reply     « Reply to VB script: move six lines down
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10912 seconds with 13 queries