This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > March 2006 > macro made in VB





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author macro made in VB
Doreen

2006-03-28, 6:38 pm

Hello, I have macro made in VB for MSWord that I would like to have in
FrontPage.... But unfortunately, Frontpage doesn't have the possibility of
recording a macro as in Word and Excel... :-(

Could somebody help me...
How can I convert this macro into VB for FrontPage??

Sub Macro3()
'
' Macro3 Macro
'
selection.InlineShapes.AddPicture FileName:="S:\deb_ajou.gif", LinkToFile _
:=False, SaveWithDocument:=True

End Sub

Thankyou very much for your support !!
Steve Easton

2006-03-28, 6:38 pm

FrontPage doesn't save images with a file, it simply links to them.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer




"Doreen" <Doreen@discussions.microsoft.com> wrote in message
news:240DB8ED-B9F6-438C-A309-EC4DFEF168C9@microsoft.com...
> Hello, I have macro made in VB for MSWord that I would like to have in
> FrontPage.... But unfortunately, Frontpage doesn't have the possibility of
> recording a macro as in Word and Excel... :-(
>
> Could somebody help me...
> How can I convert this macro into VB for FrontPage??
>
> Sub Macro3()
> '
> ' Macro3 Macro
> '
> selection.InlineShapes.AddPicture FileName:="S:\deb_ajou.gif", LinkToFile
> _
> :=False, SaveWithDocument:=True
>
> End Sub
>
> Thankyou very much for your support !!



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews