Hi, I'm having some problems with the following - I have a WScript script written that logins into a password protected website and executes some things for me automatically. It used to work great when Internet Explorer used to accept http://username:email@example.com but now it doesn't work very well for me - specifically:When the script is executed and login box comes up I'm using SendKeys to pass username/password - work fine when I'm executing the script manually, but once I set it to use with Scheduler it won't pass username/password to the login box, my guess is I need to make it "focus" on that login box... otherwise it passes username/password information to the IE itself and not the login. Any ideas?
Every day I gotta enter information in my work's website (intranet), however I dont know that much about manipulate with VBA the Internet Explorer application, for example once I enter information in the website, I gotta enter an ID after that I gotta select the date, then I gotta give some clicks in some checkboxes, then I copy some information from excel and enter that information in the navigator, and finally click on save. The thing is that I do not have access to that website in my home so is impossible for me to provide you with the link... what kind of codes do I need to do it, or where can I find a manual where I can learn to manipulate another application like the Internet explorer with VBA.
Hi,I use the following code in word vba to activate the Internet Explorer window.VB Code:Sub ActivateIE()If Tasks.Exists("Microsoft Internet Explorer") = True Then With Tasks("Microsoft Internet Explorer") .Activate .WindowState = wdWindowStateMaximize End WithElse MsgBox "Microsoft Internet Explorer is not currently running."End IfEnd Sub It works fine in Word. But it is not working in vb and Excel vba.What is the equivalent code in vb and Excel?Thanks in advance.
Hi,I'm writing an excel vba code to automate a password-protected file download from the internet and got to the bit where I get the file download box to pop up. I'm just wondering how I can control the file download box on Internet Explorer so that I can save tha file as x in folder y.Thank you very much in advance.
From Excel, I am using application.navigate to go to an InternetExplorer window using an encypted userid/password (thanks, I learned how to do that from these forums ). The browser does find the page, the userid and password are recognized. My problem is that I cannot get rid of the password dialog window thru my code. Incidentally, my code opens two Internet Explorer windows - I don't know why.If I manually close the password dialog ("escape" or clicking the "x" at the top right corner) , my protected site opens. If I manually select "ok", the password dialogs persists. Those are manual selections - I cannot seem to programmatically get control of the password dialog box that Internet Explorer produces. I've tried "sendkeys" to no avail. Thanks, in advance!Code:Sub OpenSite()Dim URL As StringDim Flags As StringDim FrameName As StringDim PostData As StringDim Headers As String '64bit encrypted Userid : passwordDim security As StringDim appIE As InternetExplorerSet appIE = CreateObject("InternetExplorer.application")appIE.Visible = TrueWhile appIE.Busy DoEventsWendURL = "http://xxx.xxx.com/xxxxxx/xxx/"Flags = 0FrameName = "Null"PostData = "Null"security = "eXp0YmZjZjp5enRiZmNmMQ=="Headers = "Authorization: Basic " & security & Chr$("13") & Chr$("10")appIE.Navigate URL, Flags, FrameName, PostData, HeadersEnd SubNote: I've tried chr$() both with and without the ""
Hi there.I'm new to this forum, and accendently found this place when trying to slove a excel vba problem. Here's the problem. I can open a Internet Explorer window through excel vba script and display an internet page. But what I need is a script/method to target a specific window. For example I have about 8 IE windows open, but when I run the script shown below it opens the target web page in a NEW window, or one of the other ones. What I'm trying to achieve is to open the target url in one of the existing window, a specific window.Just wondering if anyone knows if there is a property or method that I can use so that when I run the script I can get the url to open the correct window.Any hints of pointers would be greatly appreciated, or manybe I just need to know if this is possible.Thanks in advanced. James.I tried two methods so far.Method 1---------------------------Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _ (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _ ByVal lpParameters As String, ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As LongSub Macro8()'' Macro8 Macro' Macro recorded 22/08/2006 by template'' Keyboard Shortcut: Ctrl+d' Dim URL As String Dim test As String Dim resDim strP_id As String strP_id = Selection.Value URL = "http://james2/mac/2.asp?link=link"res = ShellExecute(0&, "open", URL, vbNullString, vbNullString, _ vbNormalFocus) End SubMethod 2---------------------------Sub DoBrowse1() Dim TargetFrame As String Dim ie As Object Set ie = CreateObject("Internetexplorer.Application") ie.Visible = True ie.Navigate "http://james2/vba_mac.html" End Sub
Hello forum,I have a question regarding Excel 2000, Visual Basic for Apps and Internet Explorer. My question is this, I want to have a macro start IE after completion of a macro, and then go to a specific URL.Can someone explain this with a VBA code example?Regards,CoRrRan<Edit> typo </Edit> ----------------------------------------| --== Alta Alatis Patent ==-- |----------------------------------------Edited by - CoRrRan on 4/17/2002 6:07:02 AM
how to go back to previous page in internet explorer using vba.
I am a newbie at VBA and I was looking at a way of opening up a page in internet explorer with a specific address and then copying some data and pasting this into excel. I have managed to create some code to open up internet explorer but dont know how to specify an address.Sub OpenFast()x = Shell("C:Program FilesInternet Exploreriexplore.exe", vbNormalNoFocus)AppActivate "Microsoft Excel"End Sub
I�m thinking of starting to use office XP for a small system I have. My question is: Is office XP more compatible with internet explorer in terms of VBA automating? I have had to work around internet explorer quite a lot in office 97, and I haven�t been able to do what I want. Fuga.
I have a VBA code that will open an instance of Internet Explorer: Dim ie as object Set ie = CreateObject("InternetExplorer.Application") Can I use Mozilla Firefox instead of Internet Explorer? IE is giving me all sorts of issues when opening.
how to change internet explorer 8 icon to internet explorer 9
complete the attached code (Excel VBA) to automatically process a File Download dialog from Internet Explorer. I want to click "Save" which will produce the "Save As" dialog. Then I need to enter a default filename like (C:Temp) and click "Save" again. When this is working, I will hide Internet Explorer to make the operation completely transparent to the user. The URL is a sample chosen specifically for this test case. Public Sub Report_Test() Dim objIE As SHDocVw.InternetExplorer Dim strURL As String Dim varItem As Variant ' Establish connection to the Internet Explorer application. Set objIE = CreateObject("InternetExplorer.Application") ' Set Internet Explorer visible. objIE.Visible = True
I have this program and what im tryin to do is this...In my Internet Explorer which is not in my vb form, I run my program and in my Internet Explorer im trying to do everything in my Internet Explorer but the code and everything is in the Vb program. i want the program to interact with the Internet Explorer that is open seperately. So im not using a webbrowser control, im using the Internet Explorer that is on my desktop. How do i do this? HELP
Hi all,i'm sure i've seen code to do this before but anyway...on my system i have VRML files (with extension ".wrl") and they are associated with internet explorer because i have a VRML plug-in for internet explorer.In File Explorer if i were to double click sample.wrl it will start internet explorer and load the VRML file (just like if you clicked on a html file it will open internet explorer - or whatever is your default browser).how do i simulate this "double click" from my vb program so that i can "run" a .wrl file?cheers,funky
Guys (Girls?),I have found some code on this forum that works great to open a website from VBA, but since it does refer to Internet Explorer, I suppose it will not work if the user of my spreadsheet does have a different webbrowser on his/her computer than IE. Is there a universal way to open a website from within VBA with "the standard program associated with the .html file extention" or something?The code I am referring to is:Sub VisitWebsite()Dim ie As ObjectSet ie = CreateObject("INTERNETEXPLORER.APPLICATION")ie.NAVIGATE "http://websiteaddress"ie.Visible = TrueWhile ie.busyDoEventsWend End Sub
My query is regarding internet explorer 6 automation via code in VBA (Excel 2003). I'm trying to open a page on clicking a button in main page. I'm able to open both parent and child pages via VBA, but now want to automate events (like radio btn click etc) in child page. below is my initial code - '======== Sub ListLinks() Dim IeApp As InternetExplorer Dim sURL As String Dim IeDoc As Object Dim i As Long 'Create new instance of IE Set IeApp = New InternetExplorer
Helllo!I am opening a PowerPoint Show inside an Internet Explorer window. (That is, on a simple html page, I have link to myfile.pps) I want a VBA macro in that presentation to access properties of the IE window, for example, the url. But I can't find anything in the VBA object browser that loks liekwhat I want.Does anyone out there know?Thanks.
Internet explorer has stopped working, Internet explorer is restarting.windows explorer has stopped working, windows explorer is restarting. I have emailed Microsoft 3 times and they have given me MANY things to try but I am a computer tech, so I had already tried them all.It is all over the internet so my computer details should not matter.It is ALL over the Internet about this problem and no one seems to know the answer.Of course, you can format but that is not a "fix" for it or how to stop it from happening.
A new window opened in Internet Explorer displays a blank white page. I tried all these fixes: - Windows updates (Win 7sp1 and IE9.0.9) A new window opened in Internet Explorer displays a blank white page - Microsoft Fix it 50191 - Re-register the DLL Nothing happens when you click a link in Internet Explorer - Check your default web browser setting - Change the file types that Internet Explorer opens by default - Use the Internet Explorer No Add-ons mode - Reset Internet Explorer settings - Reregister the necessary Internet Explorer DLL files - Use System Restore The problem remains unsolved. Everything else runs fast and perfectly on my computer, included Mozilla Firefox. However I don't like when something doesn't run very well.
I'm currently promoting a website that requires internet explorer. I have been showing a page that tells non-IE users (mainly Firefox users) to switch to IE in order to view the page.However instead I want it so that if the current browser is not Internet Explorer it loads the website in Internet Explorer (basically a popup that is in Internet Explorer, and not in whatever browser the user is using).
i wanna access websites which are internet explorer specific sites, they don't open correctly in firefox, chrome, safari, opera or any other browser,and i don't want just to change User Agent to desktop, it doesn't work. even on desktop pc those sites only work correctly on internet explorer. so is there anything to access those sites?one example of those sites is my phone network's free sms sending website, which can only be accessed correctly from internet explorer, so i can't send sms through my mobile from that site, i need to use internet explorer on my pc
I'm using windows 7 home premium and internet explorer 8. I've just downloaded adobe flash and tried to install several times but it gets to 99% then asks me to close internet explorer. But internet explorer IS closed. It will not let me continue, just keeps insisting i close internet explorer.
I'm trying to create an object for the Internet explorer, i'm using VBA 6.2 on a third party piece of software.I can createobjects for word etc....set objWord = createobject("Word.application")but I'm don't know the class name for the internet browser.Can anyone help.
Hi,Is there a way to check if a word document is being "save" or "save as" in vba?also if we can disable the "save as" button in internet explorer the better...What i wanna do is to protect document from being save when they open in either word or internet explorerAnyone could help?
How to download the zip file from internet explorer and save it into c: using VBA codes. I have tried many codes from the internet but none of them are working. i am facing problem for the popup box. the macro which i have found was not supporting to it. Please find the source data from my web page. [Code] ....
When I open a file in excel and I close it without closing excel-application, the file remains open in the Vba-background. This is not a big problem but when I reopen the file I get 2 versions in the Vba-explorer. This continues until I close the whole excel-application. So everytime I reopen the file the vba-explorer adds a new version. Is somebody familiar with this? Is this normal or is this a bug?
In VB6 I used internet explorer object a lot. There things internet explorer object can do that webbrowser control cannot. For example, internet explorer object is easier to debug because when the application is in debug mode, internet explorer object is still interactive with client. Also we can clear cookies and resstart with internet explorer object. We can do ie.quit, then set ie=new internetexplorer then ie.visible=true In vb.net internet explorer object becomes webbrowser control and I have no way to do that? How can I delete cookies and then restart webbrowser control? How can I tell webbrowser control to "quit" or destroy it self? That sort of thing.
I have a small webbrowser but when I try to navigate to a certain webpages the webpage show a warning to force me to upgrade my webbrowser also internet explorer:"Upgrade your browser for a better Myspace experience.We recommend one of the following browsers to provide the best and most reliable experience on Myspace. Some features, like Profile 2.0 and MyspaceIM for Web, may not have full functionality in other browsers.select and install one of the browsers below."I already have internet explorer 9 installed in my computer also the webpage show the message:"Microsoft Internet Explorer Available for Windows Already using Internet Explorer 9? Please visit �Settings�, and select �f12 Developer Tools�. In this window, make sure "Browser Mode" is set to �Internet Explorer 9� and "Document Mode" is set to �Internet Explorer 9 standards�"
HiI was planning on making an internet explorer equivilant in visual basic using the Microsoft Internet Control. If you make an internet explorer in VB and run it, when you right hand click and say new window, it loads in a new Internet Explorer Window, how do you make it load in your own new window?Thank you KindlyAdam
hi ...i hope anyone can help me with this problem ...iam trying to make a small app. that will get only the highlighted text in internet explorer ... is this possible !?i will add a timer that will check for the forground window, and then get the highlighted text ...the app will only be used to get highlighted text from internet explorer ...can anyone please help !?ahh, i won`t be using the "Microsoft internet controls" ...the internet explorer window will be opened seperatley ..thanks guys for your help ..
why vs takes a long time to run after i press F5. The below are the output which requires me to wait for about 40seconds To enable script debugging in Internet Explorer, choose Internet Options from the Tools menu and navigate to the Advanced tab. Under the Browsing category, clear the 'Disable Script Debugging (Internet Explorer)' checkbox, then restart Internet Explorer. 'WebDev.WebServer.EXE' (Managed): Loaded 'C:WINDOWSassemblyGAC_32mscorlib184.108.40.206__b77a5c561934e089mscorlib.dll' 'WebDev.WebServer.EXE' (Managed): Loaded 'C:Program FilesCommon FilesMicrosoft SharedDevServer9.0WebDev.WebServer.EXE' [code]....
When we are trying use�the �export to excel feature on�some �Reports� we are getting the following error � First for the open,save File Download� Dialog box it is neither showing the file name nor the file type� and if clicking open/save�we are getting the following Microsoft Internet Explorer error message saying � Internet explorer cannot down load from Servername � Internet explorer was not able to open this internet site.The requested site is either� unavailable or cannot be found.Please try again later � � Thanks for the reply � Rajesh � � �
I already have some VBA code that uses an id let’s call it “id666″ to get information from a website using custom code without using internet explorer. The website has 1000s of pages, and each one relates to a different id.You can see the id value when you right click on a web page window and choose “properties”. It’s part of the "Address: (URL)" property eg http://www.thiswebsite.com/MarketVie...rigin=HFL&ex=1What I want to do is access the value held in “Address: (URL)” of an already open web page, then extract the id, then use my existing code to extract the data for the id.Unfortunately my cunning plan is not working out, because I can't retrieve this "Address: (URL)" property using VBA.I’ve written some code that identifies the internet explorer object and document object of the web page, but all the URL type properties I’ve tried just give the url as “www.thiswebsite.com” without the id . Am I on the right track? How do I access the “Address: (URL)” value displayed on the properties page?
I am using VBA within Excel2003. The VBA creates an HTM version of my spreadsheet page, using commands as shown below. Set rngConvert = wrkFile1("NH_PROD.xls").ActiveSheet.Range("a1:h84") strHTMFilePath = "\NR-fp06GroupsSHARENH_PROD1.htm" intResult = htmlconvert(rngConvert, False, False, _ False, 1252, strHTMFilePath) The problem is that when the VB is run, it should always overwrite the old HTM file with the new file. (Note: the HTM file is always in use, open 24 hours a day, 7 days a week and being displayed by Internet Explorer. Internet Explorer is occasionally refreshed, which reloads the page and the problem with content is then seen) However, sometimes when the VB is run it just appends the new HTML content to the end of the old HTML content, giving me a webpage that is twice as long as it should be, with a mix of old and new content! I always want the new HTM file to completely overwrite the old HTM file. I think I have a "file locking conflict" (?) What code snippet can I use to resolve this? Thanks
I am using VBA within Excel2003. The VBA creates an HTM version of my spreadsheet page, using commands as shown below.Set rngConvert = wrkFile1("NH_PROD.xls").ActiveSheet.Range("a1:h84")strHTMFilePath = "\NR-fp06GroupsSHARENH_PROD1.htm"intResult = htmlconvert(rngConvert, False, False, _False, 1252, strHTMFilePath)The problem is that when the VB is run, it should always overwrite the old HTM file with the new file. (Note: the HTM file is always in use, open 24 hours a day, 7 days a week and being displayed by Internet Explorer. Internet Explorer is occasionally refreshed, which reloads the page and the problem with content is then seen) However, sometimes when the VB is run it just appends the new HTML content to the end of the old HTML content, giving me a webpage that is twice as long as it should be, with a mix of old and new content! I always want the new HTM file to completely overwrite the old HTM file. I think I have a "file locking conflict" (?) What code snippet can I use to resolve this? Thanks
I have a Windows 7 HP Pavilion dv7. I can use the internet 2 different ways - through AOL or through Internet Explorer. It works fine going through AOL. But when I go directly thru Internet Explorer, I get the dreaded Blue Screen. I have gotten a messsage to upgrade to Internet Explorer 11, but when I try to do that, I get the Blue Screen.
my internet explorer was working a few days ago, then i logged off and logged back in and it wont display any pages and says if i would like to start a diagnostics test, and when i do it says everything is fine and it cant find the problem anywhere on the internet. But my internet explorer 64 bit works, my Normal Internet explorer or 32 bit is not. I am using XP not vista.
I have PC dual boot one for winxp and another for fedora core 13 I installed USB wireless adapter type rtl8187 : 1-In winxp configured properly and I made internet connection broadband type and the internet explorer working fine. 2-In Fedoracore 13 also the USB wireless adapter configured automatically and it show all the wireless station and also I can ping the Gateway address but the internet explorer not working ,I use Mozilla firefox explorer. how can I setup the internet connection?
I have made a program which keep track of site visited by users through internet explorer but I am unable to get it when user visited it through windows explorer. can I get any function which gives the information when user visited a site using windows explorer or whether it's possible to stop user to visit a site using windows explorer he will only visit a site using internet explorer only.Please help me out .Thanks
i have a computer with windows 7 home premium and internet explorer 9 i have a user account set up that i want to block access to various web pages.in internet explorer i click on tools>internet options>security, select restricted sites and click on sites.i add [url] to my list of restricted sites.after logging off and logging on again i'm still able to access Internet.i click on tools>internet options>content and click on enable in the content advisor section.i click on the approved sites tab and add www.Internet.com and select never.after quitting ie, logging out, logging back in, i can still access Internet.