Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

VB script in MS Word

Thread Tools
 
Search this Thread
 
Old 01 April 2005, 10:56 AM
  #1  
bigsinky
Scooby Regular
Thread Starter
 
bigsinky's Avatar
 
Join Date: Dec 2002
Location: Sunny BELFAST
Posts: 19,408
Likes: 0
Received 0 Likes on 0 Posts
Default VB script in MS Word

I would like to display a Warning box with instructions when ever a certain Word document is opened. Can anyone write a simple VB script that i can add to a document so that this happens.

TIA

Cheers

big sinky
Old 01 April 2005, 12:19 PM
  #2  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

you could create a macro called autoexec, and add the following to the macro code..

Msgbox("blah blah blah")

Plenty of other ways of doing it too.

David
Old 01 April 2005, 12:38 PM
  #3  
bigsinky
Scooby Regular
Thread Starter
 
bigsinky's Avatar
 
Join Date: Dec 2002
Location: Sunny BELFAST
Posts: 19,408
Likes: 0
Received 0 Likes on 0 Posts
Default

spot on m8. now how do i get it to run when the document is opened?

cheers

sinky
Old 01 April 2005, 01:27 PM
  #4  
bigsinky
Scooby Regular
Thread Starter
 
bigsinky's Avatar
 
Join Date: Dec 2002
Location: Sunny BELFAST
Posts: 19,408
Likes: 0
Received 0 Likes on 0 Posts
Default

ok got is sussed thanks. name the macro AutoOpen
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Neil Micklethwaite
ScoobyNet General
5
06 January 2001 01:47 PM
Richard Askew
ScoobyNet General
3
27 November 2000 01:43 PM
mattski
ICE
5
02 November 2000 03:26 PM
Freddy Kruger
ScoobyNet General
6
11 April 2000 09:07 PM



Quick Reply: VB script in MS Word



All times are GMT +1. The time now is 07:53 PM.