Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default Keep IE on top of the form

My program requires the user to copy numbers to a UserForm from an Internet
Explorer page. I was able to resize the IE to half of my screen. Is there a
way to keep IE on top of the Form while the user still can edit the Form so
that the user does not have to switch back and forth between two applications?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Keep IE on top of the form

How about including a webbrowser onto the userform itself:
http://www.dailydoseofexcel.com/arch...owser-control/

HTH. Best wishes Harald

"Scott" skrev i melding
...
My program requires the user to copy numbers to a UserForm from an

Internet
Explorer page. I was able to resize the IE to half of my screen. Is there

a
way to keep IE on top of the Form while the user still can edit the Form

so
that the user does not have to switch back and forth between two

applications?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default Keep IE on top of the form

Thanks for the help.

It is a nice function. It works when I test it. However, my form
automatically maximizes to fit the screen once launched. Then the WebBrowser
window disappeared from the form and when I tried to activate the function,
it gave a "Run-time error" and "Method 'Navigate2' of object 'IWebBrowser2'
failed." It worked only after I disabled the form's maximizing function.

"Harald Staff" wrote:

How about including a webbrowser onto the userform itself:
http://www.dailydoseofexcel.com/arch...owser-control/

HTH. Best wishes Harald

"Scott" skrev i melding
...
My program requires the user to copy numbers to a UserForm from an

Internet
Explorer page. I was able to resize the IE to half of my screen. Is there

a
way to keep IE on top of the Form while the user still can edit the Form

so
that the user does not have to switch back and forth between two

applications?

Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default Keep IE on top of the form

It seems that I can only access the page (of the form) containing WebBrowser
once. If I then go to other pages and come back, the WebBrower window is
gone even though I never ran the function. If I try to run the function, it
gives the error message cited in my last email.

"Scott" wrote:

Thanks for the help.

It is a nice function. It works when I test it. However, my form
automatically maximizes to fit the screen once launched. Then the WebBrowser
window disappeared from the form and when I tried to activate the function,
it gave a "Run-time error" and "Method 'Navigate2' of object 'IWebBrowser2'
failed." It worked only after I disabled the form's maximizing function.

"Harald Staff" wrote:

How about including a webbrowser onto the userform itself:
http://www.dailydoseofexcel.com/arch...owser-control/

HTH. Best wishes Harald

"Scott" skrev i melding
...
My program requires the user to copy numbers to a UserForm from an

Internet
Explorer page. I was able to resize the IE to half of my screen. Is there

a
way to keep IE on top of the Form while the user still can edit the Form

so
that the user does not have to switch back and forth between two

applications?

Thanks.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Keep IE on top of the form

You lost me man. Your userform has pages, what kind of pages ? How does it
automatically resize ? What is the function in mention ? Need code and
detail to assist further, sorry.

Best wishes Harald

"Scott" skrev i melding
...
It seems that I can only access the page (of the form) containing

WebBrowser
once. If I then go to other pages and come back, the WebBrower window is
gone even though I never ran the function. If I try to run the function,

it
gives the error message cited in my last email.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default Keep IE on top of the form

Here is what happened. I created a UserForm1. Then I put a MultiPage
control on UserForm1. By default (on my computer), the MultiPage has two
pages, Page1 and Page2. I put a WebBrowser control on Page1. That's it.
There are no codes and no other controls. After I click the Run button, the
UserForm1 shows Page1 with a white box, which is supposed to show IE if I
have right codes, right? However, when I click Page2 and then come back to
Page1, the white box on Page1 is gone. If the white box, or WebBrowser,
disappears, how IE information could be shown? That is the problem with my
program. It worked on the first time but not the second time if I left the
page and came back to it.

Thanks for help.


"Harald Staff" wrote:

You lost me man. Your userform has pages, what kind of pages ? How does it
automatically resize ? What is the function in mention ? Need code and
detail to assist further, sorry.

Best wishes Harald

"Scott" skrev i melding
...
It seems that I can only access the page (of the form) containing

WebBrowser
once. If I then go to other pages and come back, the WebBrower window is
gone even though I never ran the function. If I try to run the function,

it
gives the error message cited in my last email.




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Keep IE on top of the form

Wow, you're right. I produce other unpleasant behavior too with a webbrowser
on a multipage. I can't say anything but "do not put it on a multipage and
hopefully an MVP can dig up an explanation.

Can you use a tabstrip instead and place the other stuff in frames ? (except
for the webbrowser, it seem to behaves just as volatile there). Something
like

Private Sub TabStrip1_Change()
Select Case TabStrip1.Value
Case 0
WebBrowser1.Visible = True
Frame2.Visible = False
Case 1
WebBrowser1.Visible = False
Frame2.Visible = True
Case Else
End Select
End Sub

Best wishes Harald

"Scott" skrev i melding
...
Here is what happened. I created a UserForm1. Then I put a MultiPage
control on UserForm1. By default (on my computer), the MultiPage has two
pages, Page1 and Page2. I put a WebBrowser control on Page1. That's it.
There are no codes and no other controls. After I click the Run button,

the
UserForm1 shows Page1 with a white box, which is supposed to show IE if I
have right codes, right? However, when I click Page2 and then come back

to
Page1, the white box on Page1 is gone. If the white box, or WebBrowser,
disappears, how IE information could be shown? That is the problem with

my
program. It worked on the first time but not the second time if I left

the
page and came back to it.

Thanks for help.


"Harald Staff" wrote:

You lost me man. Your userform has pages, what kind of pages ? How does

it
automatically resize ? What is the function in mention ? Need code and
detail to assist further, sorry.

Best wishes Harald

"Scott" skrev i melding
...
It seems that I can only access the page (of the form) containing

WebBrowser
once. If I then go to other pages and come back, the WebBrower window

is
gone even though I never ran the function. If I try to run the

function,
it
gives the error message cited in my last email.






  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default Keep IE on top of the form

Thank you very much. I'll try this though I've never used TabStrips.

"Harald Staff" wrote:

Wow, you're right. I produce other unpleasant behavior too with a webbrowser
on a multipage. I can't say anything but "do not put it on a multipage and
hopefully an MVP can dig up an explanation.

Can you use a tabstrip instead and place the other stuff in frames ? (except
for the webbrowser, it seem to behaves just as volatile there). Something
like

Private Sub TabStrip1_Change()
Select Case TabStrip1.Value
Case 0
WebBrowser1.Visible = True
Frame2.Visible = False
Case 1
WebBrowser1.Visible = False
Frame2.Visible = True
Case Else
End Select
End Sub

Best wishes Harald

"Scott" skrev i melding
...
Here is what happened. I created a UserForm1. Then I put a MultiPage
control on UserForm1. By default (on my computer), the MultiPage has two
pages, Page1 and Page2. I put a WebBrowser control on Page1. That's it.
There are no codes and no other controls. After I click the Run button,

the
UserForm1 shows Page1 with a white box, which is supposed to show IE if I
have right codes, right? However, when I click Page2 and then come back

to
Page1, the white box on Page1 is gone. If the white box, or WebBrowser,
disappears, how IE information could be shown? That is the problem with

my
program. It worked on the first time but not the second time if I left

the
page and came back to it.

Thanks for help.


"Harald Staff" wrote:

You lost me man. Your userform has pages, what kind of pages ? How does

it
automatically resize ? What is the function in mention ? Need code and
detail to assist further, sorry.

Best wishes Harald

"Scott" skrev i melding
...
It seems that I can only access the page (of the form) containing
WebBrowser
once. If I then go to other pages and come back, the WebBrower window

is
gone even though I never ran the function. If I try to run the

function,
it
gives the error message cited in my last email.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass variable from form to form to form headly Excel Programming 1 May 31st 06 02:50 AM
Strange issue freezing parent form when unloading a child form Stefano Gatto Excel Programming 1 November 11th 05 04:42 PM
form in excel to be attached to the emails address in the form upon sumission Abdulkader Bhanpurawala via OfficeKB.com Excel Programming 6 July 10th 05 10:48 AM
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? Daniel[_14_] Excel Programming 1 August 29th 04 01:20 PM


All times are GMT +1. The time now is 12:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"