open and force external program to maximise window

Davros

Registered User.
Local time
Today, 08:29
Joined
Sep 9, 2005
Messages
131
hi guys
i'm banging my head here trying to do this. i will not go into too much detail but i have a hyperlink which needs to open internet explorer which works

Application.FollowHyperlink "http://cardinet.ceredigion.gov.uk/"

this works.
however when the hyplerink is activated i want IE to open up and maximise the window. at the moment despite all my effots the window will only open up half the size of the window. i have tired numerous codes none of which work. i have set IE to maximise on opening - this does not work.
i'm really banging my head here. any help really appreciated

thanks in advance
 
thanks
but i've tried that and it did not work. the code runs without any errors EXCEPT it does not maximise the IE window. this could be down to the fact that i am opening a second tab within IE itself. that is the hyperlink first opens IE because it needs to be open before i can execute the main part of my code which access's maps on our main server. if i access the map in IE first then i am prohibited by an external code from accessing the maps which has nothing to do with Access.

one other thing is that if i open IE using the shell command then it works fine and IE does maximise EXCEPT that i then have multiple versions of IE running which is a pain.

thank anyway
any more suggestions?
 
one other point perhaps i should note is that this code opens up IE to a maximized window

Call Shell("c:\Program Files\Internet Explorer\iexplore.exe ", vbMaximizedFocus)

however this code does not

Application.FollowHyperlink "http://cardinet.ceredigion.gov.uk/", vbMaximizedFocus

i don't see the difference! one call opens up IE directly with a maximized window and the other goes directly to a web page via opening up IE but the window is only a quater size? and yet both accept the vbMaximizedFocus??
 

Users who are viewing this thread

Back
Top Bottom