Save as module 
Author Message
 Save as module

Hi there,

I am wondering how I can alter the module that stores info
on the save as dialog box for office apps. I want to run
my own vb app once a user clicks the ok button on the save
as dialog box. I was thinking or just adding a ShellExecute
(myfile) once the button was pressed. Is this doable or am
I being wasy too naive.

Any ideas, advice?

Thanks,

Cormac.



Mon, 19 Jan 2004 19:44:11 GMT  
 Save as module
Could you explain in a bit more detail what changes you are wanting to make?
Since you can do some things but not others to the Word dialogs, the
question is a bit too general to allow a an answer to be both brief and
meaningful :-)

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email


Quote:
> Hi there,

> I am wondering how I can alter the module that stores info
> on the save as dialog box for office apps. I want to run
> my own vb app once a user clicks the ok button on the save
> as dialog box. I was thinking or just adding a ShellExecute
> (myfile) once the button was pressed. Is this doable or am
> I being wasy too naive.

> Any ideas, advice?

> Thanks,

> Cormac.



Mon, 19 Jan 2004 22:45:58 GMT  
 Save as module
Hi,

Basically what I want is this:

When a user chooses to save a file, they will be prompted
by the Save As dialog box. Once they are happy with the
data they entered they can either choose Save or Cancel.
If they choose Cancel, then fine, nothing extraordinary
happens. However if they choose Save, I want my VB app to
open automatically. I suppose the pseudo code would be
something like:

if okbutton.click = true then
open myVBapp
Elseif do nothing.

The main problem that I have is where do I put this code.
Do I need to write a new Save As api and pass by the
existing one. Can I write a module and include it in my
own VB app so that any thing the Save As box is alled the
app will listen for the ok button click. ?????

This is a problem that has been plauging me for the last
week and I just don't know how to tackle it.

Any help or advice would be greatly appreciated.

Rgds,

Cormac.

Quote:
>-----Original Message-----
>Could you explain in a bit more detail what changes you

are wanting to make?
Quote:
>Since you can do some things but not others to the Word
dialogs, the
>question is a bit too general to allow a an answer to be
both brief and
>meaningful :-)

>--
>Regards
>Jonathan West - Word MVP
>MultiLinker - Automated generation of hyperlinks in Word
>Conversion to PDF & HTML
>http://www.multilinker.com
>Word FAQs at http://www.multilinker.com/wordfaq
>Please post any follow-up in the newsgroup. I do not

reply to Word questions
Quote:
>by email



>> Hi there,

>> I am wondering how I can alter the module that stores
info
>> on the save as dialog box for office apps. I want to run
>> my own vb app once a user clicks the ok button on the
save
>> as dialog box. I was thinking or just adding a
ShellExecute
>> (myfile) once the button was pressed. Is this doable or
am
>> I being wasy too naive.

>> Any ideas, advice?

>> Thanks,

>> Cormac.

>.



Mon, 19 Jan 2004 23:23:19 GMT  
 Save as module
Hi Cormac,

OK, this is fairly easy

With Dialogs(wdDialogFileSaveAs)
    If Dialogs(wdDialogFileSaveAs).Show Then
        'OK pressed, put your code here
    Else
        'Cancel pressed
    End If
End With

If you want your VB code to control the actual saving of the document, use
.Display instead of .Show. .Display will bring up the dialog, but will not
actually save the file when the user presses OK. If you want to save the
file, you can retrieve the name of the file defined by the user with the
.Name property of the dialog, and then save it yourself.

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email


Quote:
> Hi,

> Basically what I want is this:

> When a user chooses to save a file, they will be prompted
> by the Save As dialog box. Once they are happy with the
> data they entered they can either choose Save or Cancel.
> If they choose Cancel, then fine, nothing extraordinary
> happens. However if they choose Save, I want my VB app to
> open automatically. I suppose the pseudo code would be
> something like:

> if okbutton.click = true then
> open myVBapp
> Elseif do nothing.

> The main problem that I have is where do I put this code.
> Do I need to write a new Save As api and pass by the
> existing one. Can I write a module and include it in my
> own VB app so that any thing the Save As box is alled the
> app will listen for the ok button click. ?????

> This is a problem that has been plauging me for the last
> week and I just don't know how to tackle it.

> Any help or advice would be greatly appreciated.

> Rgds,

> Cormac.

> >-----Original Message-----
> >Could you explain in a bit more detail what changes you
> are wanting to make?
> >Since you can do some things but not others to the Word
> dialogs, the
> >question is a bit too general to allow a an answer to be
> both brief and
> >meaningful :-)

> >--
> >Regards
> >Jonathan West - Word MVP
> >MultiLinker - Automated generation of hyperlinks in Word
> >Conversion to PDF & HTML
> >http://www.multilinker.com
> >Word FAQs at http://www.multilinker.com/wordfaq
> >Please post any follow-up in the newsgroup. I do not
> reply to Word questions
> >by email



> >> Hi there,

> >> I am wondering how I can alter the module that stores
> info
> >> on the save as dialog box for office apps. I want to run
> >> my own vb app once a user clicks the ok button on the
> save
> >> as dialog box. I was thinking or just adding a
> ShellExecute
> >> (myfile) once the button was pressed. Is this doable or
> am
> >> I being wasy too naive.

> >> Any ideas, advice?

> >> Thanks,

> >> Cormac.

> >.



Tue, 20 Jan 2004 01:35:09 GMT  
 Save as module
Thanks Jonathan,

I feel a bit stupid asking this but where should I put
this code. In my vb app or do I need to get inside the
actual save as module (if so, how?).

Thanks again,

Cormac,

Quote:
>-----Original Message-----
>Hi Cormac,

>OK, this is fairly easy

>With Dialogs(wdDialogFileSaveAs)
>    If Dialogs(wdDialogFileSaveAs).Show Then
>        'OK pressed, put your code here
>    Else
>        'Cancel pressed
>    End If
>End With

>If you want your VB code to control the actual saving of
the document, use
>..Display instead of .Show. .Display will bring up the

dialog, but will not
Quote:
>actually save the file when the user presses OK. If you
want to save the
>file, you can retrieve the name of the file defined by
the user with the
>..Name property of the dialog, and then save it yourself.

>--
>Regards
>Jonathan West - Word MVP
>MultiLinker - Automated generation of hyperlinks in Word
>Conversion to PDF & HTML
>http://www.multilinker.com
>Word FAQs at http://www.multilinker.com/wordfaq
>Please post any follow-up in the newsgroup. I do not

reply to Word questions

- Show quoted text -

Quote:
>by email



>> Hi,

>> Basically what I want is this:

>> When a user chooses to save a file, they will be
prompted
>> by the Save As dialog box. Once they are happy with the
>> data they entered they can either choose Save or Cancel.
>> If they choose Cancel, then fine, nothing extraordinary
>> happens. However if they choose Save, I want my VB app
to
>> open automatically. I suppose the pseudo code would be
>> something like:

>> if okbutton.click = true then
>> open myVBapp
>> Elseif do nothing.

>> The main problem that I have is where do I put this
code.
>> Do I need to write a new Save As api and pass by the
>> existing one. Can I write a module and include it in my
>> own VB app so that any thing the Save As box is alled
the
>> app will listen for the ok button click. ?????

>> This is a problem that has been plauging me for the last
>> week and I just don't know how to tackle it.

>> Any help or advice would be greatly appreciated.

>> Rgds,

>> Cormac.

>> >-----Original Message-----
>> >Could you explain in a bit more detail what changes you
>> are wanting to make?
>> >Since you can do some things but not others to the Word
>> dialogs, the
>> >question is a bit too general to allow a an answer to
be
>> both brief and
>> >meaningful :-)

>> >--
>> >Regards
>> >Jonathan West - Word MVP
>> >MultiLinker - Automated generation of hyperlinks in
Word
>> >Conversion to PDF & HTML
>> >http://www.multilinker.com
>> >Word FAQs at http://www.multilinker.com/wordfaq
>> >Please post any follow-up in the newsgroup. I do not
>> reply to Word questions
>> >by email



>> >> Hi there,

>> >> I am wondering how I can alter the module that stores
>> info
>> >> on the save as dialog box for office apps. I want to
run
>> >> my own vb app once a user clicks the ok button on the
>> save
>> >> as dialog box. I was thinking or just adding a
>> ShellExecute
>> >> (myfile) once the button was pressed. Is this doable
or
>> am
>> >> I being wasy too naive.

>> >> Any ideas, advice?

>> >> Thanks,

>> >> Cormac.

>> >.

>.



Tue, 20 Jan 2004 16:52:18 GMT  
 Save as module
Hi Cormac

See:
http://www.mvps.org/word/FAQs/MacrosVBA/InterceptSavePrint.htm

Regards

Dave


| Thanks Jonathan,
|
| I feel a bit stupid asking this but where should I put
| this code. In my vb app or do I need to get inside the
| actual save as module (if so, how?).
|
| Thanks again,
|
| Cormac,

Quote:
| >-----Original Message-----
| >Hi Cormac,
| >
| >OK, this is fairly easy
| >
| >With Dialogs(wdDialogFileSaveAs)
| >    If Dialogs(wdDialogFileSaveAs).Show Then
| >        'OK pressed, put your code here
| >    Else
| >        'Cancel pressed
| >    End If
| >End With
| >
| >If you want your VB code to control the actual saving of
| the document, use
| >..Display instead of .Show. .Display will bring up the
| dialog, but will not
| >actually save the file when the user presses OK. If you
| want to save the
| >file, you can retrieve the name of the file defined by
| the user with the
| >..Name property of the dialog, and then save it yourself.
| >
| >--
| >Regards
| >Jonathan West - Word MVP
| >MultiLinker - Automated generation of hyperlinks in Word
| >Conversion to PDF & HTML
| >http://www.multilinker.com
| >Word FAQs at http://www.multilinker.com/wordfaq
| >Please post any follow-up in the newsgroup. I do not
| reply to Word questions
| >by email
| >
| >
| >


| >> Hi,
| >>
| >> Basically what I want is this:
| >>
| >> When a user chooses to save a file, they will be
| prompted
| >> by the Save As dialog box. Once they are happy with the
| >> data they entered they can either choose Save or Cancel.
| >> If they choose Cancel, then fine, nothing extraordinary
| >> happens. However if they choose Save, I want my VB app
| to
| >> open automatically. I suppose the pseudo code would be
| >> something like:
| >>
| >> if okbutton.click = true then
| >> open myVBapp
| >> Elseif do nothing.
| >>
| >> The main problem that I have is where do I put this
| code.
| >> Do I need to write a new Save As api and pass by the
| >> existing one. Can I write a module and include it in my
| >> own VB app so that any thing the Save As box is alled
| the
| >> app will listen for the ok button click. ?????
| >>
| >> This is a problem that has been plauging me for the last
| >> week and I just don't know how to tackle it.
| >>
| >> Any help or advice would be greatly appreciated.
| >>
| >> Rgds,
| >>
| >> Cormac.
| >>
| >> >-----Original Message-----
| >> >Could you explain in a bit more detail what changes you
| >> are wanting to make?
| >> >Since you can do some things but not others to the Word
| >> dialogs, the
| >> >question is a bit too general to allow a an answer to
| be
| >> both brief and
| >> >meaningful :-)
| >> >
| >> >--
| >> >Regards
| >> >Jonathan West - Word MVP
| >> >MultiLinker - Automated generation of hyperlinks in
| Word
| >> >Conversion to PDF & HTML
| >> >http://www.multilinker.com
| >> >Word FAQs at http://www.multilinker.com/wordfaq
| >> >Please post any follow-up in the newsgroup. I do not
| >> reply to Word questions
| >> >by email
| >> >


| >> >> Hi there,
| >> >>
| >> >> I am wondering how I can alter the module that stores
| >> info
| >> >> on the save as dialog box for office apps. I want to
| run
| >> >> my own vb app once a user clicks the ok button on the
| >> save
| >> >> as dialog box. I was thinking or just adding a
| >> ShellExecute
| >> >> (myfile) once the button was pressed. Is this doable
| or
| >> am
| >> >> I being wasy too naive.
| >> >>
| >> >> Any ideas, advice?
| >> >>
| >> >> Thanks,
| >> >>
| >> >> Cormac.
| >> >
| >> >
| >> >.
| >> >
| >
| >
| >.
| >



Tue, 20 Jan 2004 18:04:13 GMT  
 Save as module
Guys,

Thank you so much for your help. I don't mean to be a pest
but is it possible to access the actual Save As module
source code. The reason that I ask is that I would rather
not have to code macros (sometimes people are dodgy about
them due to viruses, etc).

Thx again,

Cormac.

Quote:
>-----Original Message-----
>Hi Cormac

>See:
>http://www.mvps.org/word/FAQs/MacrosVBA/InterceptSavePrint
.htm

>Regards

>Dave



>| Thanks Jonathan,
>|
>| I feel a bit stupid asking this but where should I put
>| this code. In my vb app or do I need to get inside the
>| actual save as module (if so, how?).
>|
>| Thanks again,
>|
>| Cormac,
>| >-----Original Message-----
>| >Hi Cormac,
>| >
>| >OK, this is fairly easy
>| >
>| >With Dialogs(wdDialogFileSaveAs)
>| >    If Dialogs(wdDialogFileSaveAs).Show Then
>| >        'OK pressed, put your code here
>| >    Else
>| >        'Cancel pressed
>| >    End If
>| >End With
>| >
>| >If you want your VB code to control the actual saving
of
>| the document, use
>| >..Display instead of .Show. .Display will bring up the
>| dialog, but will not
>| >actually save the file when the user presses OK. If you
>| want to save the
>| >file, you can retrieve the name of the file defined by
>| the user with the
>| >..Name property of the dialog, and then save it
yourself.
>| >
>| >--
>| >Regards
>| >Jonathan West - Word MVP
>| >MultiLinker - Automated generation of hyperlinks in
Word
>| >Conversion to PDF & HTML
>| >http://www.multilinker.com
>| >Word FAQs at http://www.multilinker.com/wordfaq
>| >Please post any follow-up in the newsgroup. I do not
>| reply to Word questions
>| >by email
>| >
>| >
>| >


>| >> Hi,
>| >>
>| >> Basically what I want is this:
>| >>
>| >> When a user chooses to save a file, they will be
>| prompted
>| >> by the Save As dialog box. Once they are happy with
the
>| >> data they entered they can either choose Save or
Cancel.
>| >> If they choose Cancel, then fine, nothing
extraordinary
>| >> happens. However if they choose Save, I want my VB
app
>| to
>| >> open automatically. I suppose the pseudo code would
be
>| >> something like:
>| >>
>| >> if okbutton.click = true then
>| >> open myVBapp
>| >> Elseif do nothing.
>| >>
>| >> The main problem that I have is where do I put this
>| code.
>| >> Do I need to write a new Save As api and pass by the
>| >> existing one. Can I write a module and include it in
my
>| >> own VB app so that any thing the Save As box is alled
>| the
>| >> app will listen for the ok button click. ?????
>| >>
>| >> This is a problem that has been plauging me for the
last
>| >> week and I just don't know how to tackle it.
>| >>
>| >> Any help or advice would be greatly appreciated.
>| >>
>| >> Rgds,
>| >>
>| >> Cormac.
>| >>
>| >> >-----Original Message-----
>| >> >Could you explain in a bit more detail what changes
you
>| >> are wanting to make?
>| >> >Since you can do some things but not others to the
Word
>| >> dialogs, the
>| >> >question is a bit too general to allow a an answer
to
>| be
>| >> both brief and
>| >> >meaningful :-)
>| >> >
>| >> >--
>| >> >Regards
>| >> >Jonathan West - Word MVP
>| >> >MultiLinker - Automated generation of hyperlinks in
>| Word
>| >> >Conversion to PDF & HTML
>| >> >http://www.multilinker.com
>| >> >Word FAQs at http://www.multilinker.com/wordfaq
>| >> >Please post any follow-up in the newsgroup. I do not
>| >> reply to Word questions
>| >> >by email
>| >> >


>| >> >> Hi there,
>| >> >>
>| >> >> I am wondering how I can alter the module that
stores
>| >> info
>| >> >> on the save as dialog box for office apps. I want
to
>| run
>| >> >> my own vb app once a user clicks the ok button on
the
>| >> save
>| >> >> as dialog box. I was thinking or just adding a
>| >> ShellExecute
>| >> >> (myfile) once the button was pressed. Is this
doable
>| or
>| >> am
>| >> >> I being wasy too naive.
>| >> >>
>| >> >> Any ideas, advice?
>| >> >>
>| >> >> Thanks,
>| >> >>
>| >> >> Cormac.
>| >> >
>| >> >
>| >> >.
>| >> >
>| >
>| >
>| >.
>| >

>.



Tue, 20 Jan 2004 19:00:36 GMT  
 Save as module


Quote:
> Guys,

> Thank you so much for your help. I don't mean to be a pest
> but is it possible to access the actual Save As module
> source code. The reason that I ask is that I would rather
> not have to code macros (sometimes people are dodgy about
> them due to viruses, etc).

No you can't.

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email



Tue, 20 Jan 2004 19:37:42 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Access 2000 - Saving multiple modules

2. Compile and Save All Modules Problem in Access97

3. Help: Compile and save all modules in Access runtime with VBA code

4. Compile and save all modules in Access 97

5. Save as Module follow up...

6. Saving class-module's values?

7. Modules, Modules, Modules

8. Form error when saving module code

9. Compiling & Saving Modules

10. How to compile and save module on startup???

11. MODULE modifications are NOT SAVING

12. Compiling/Saving Modules with A97 Run-Time

 

 
Powered by phpBB® Forum Software