Comments for Automate Excel http://www.automateexcel.com Excel Tutorial Sun, 14 Jan 2018 22:48:08 +0000 hourly 1 https://wordpress.org/?v=4.9.2 Comment on Automate Internet Explorer (IE) Using VBA by Steven Rynearson http://www.automateexcel.com/vba/automate-internet-explorer#comment-9928 Sun, 14 Jan 2018 22:48:08 +0000 http://www.automateexcel.com/?page_id=7166#comment-9928 Hi sorry for the late reply.

1. I’ve never tried to use Chrome or Firefox. Internet Explorer is Microsoft software so it works well with VBA. You would use a similar method to open PowerPoint, Word, etc. (other Microsoft software). Unless you have a good reason, I would stick to IE if you’re trying to use VBA.

2. Every browser has “Developer Tools” or something similar that lets you dive into the code of how a website loads. I’m not sure if you can find the ReadyState there, but there is other useful information.

-Steve

]]>
Comment on Automate Internet Explorer (IE) Using VBA by Martin Noyes http://www.automateexcel.com/vba/automate-internet-explorer#comment-9798 Wed, 03 Jan 2018 00:53:44 +0000 http://www.automateexcel.com/?page_id=7166#comment-9798 I’m new to VBA and rusty on the old standalone VB so please forgive me if I ask stupid questions.

1. Your first example: ‘Create InternetExplorer Object
Set IE = CreateObject(“InternetExplorer.Application”)
How does this get translated into the exact path to the iexplore.exe executable? What if I wanted to use Chrome or Firefox? Would “”Firefox.Application” magically find the executable?

2. “‘IE ReadyState = 4 signifies the webpage has loaded (the first loop is set to avoid inadvertently skipping over the second loop)
Do While IE.ReadyState = 4: DoEvents: Loop ‘Do While
Do Until IE.ReadyState = 4: DoEvents: Loop ‘Do Until”
How do you know that the ready state for IE is decimal 4? Where does one look that up? Would it be the same for other browsers? And what other parameters are defined for browsers and where can they be found?

Thanks for a great article. Very enlightening. And I agree with you about the SendKeys. Tried it in a macro and what a self destroying disaster it was. The object (a calculator) immediately lost focus and the macro started writing all over itself. Keeping the focus on the object looks like a major problem.

Thanks Again.

]]>
Comment on Automate Internet Explorer (IE) Using VBA by Martin http://www.automateexcel.com/vba/automate-internet-explorer#comment-9757 Sun, 31 Dec 2017 03:20:38 +0000 http://www.automateexcel.com/?page_id=7166#comment-9757 I cann’t get the first example to run. I got a 429 error – active x can’t create object. How is this possible since Internet Explorer comes with O.S? I’m running a new Office 2016 Excel install. I must admit I am a loss to understand how the create object resolves down to the path name of the application c:\Program Files\Internet Explorer\iexplore.exe What if I wanted to launch a different web browser like Firefox?

]]>
Comment on VBA – Cut, Copy, Paste from a Macro by Mohamed http://www.automateexcel.com/vba/cut-copy-paste-with-macro#comment-9732 Thu, 28 Dec 2017 14:31:07 +0000 http://excelbootcamp.com/vba/cut-copy-paste-with-macro/#comment-9732 Thanks very helpful

]]>
Comment on VBA – Cut, Copy, Paste from a Macro by Steven Rynearson http://www.automateexcel.com/vba/cut-copy-paste-with-macro#comment-9661 Thu, 21 Dec 2017 14:31:44 +0000 http://excelbootcamp.com/vba/cut-copy-paste-with-macro/#comment-9661 If you copy+paste without inserting a row that might help. Otherwise you can use the formulaR1C1 property to define the formula from within VBA.

]]>
Comment on VBA – Cut, Copy, Paste from a Macro by Steven Rynearson http://www.automateexcel.com/vba/cut-copy-paste-with-macro#comment-9660 Thu, 21 Dec 2017 14:28:47 +0000 http://excelbootcamp.com/vba/cut-copy-paste-with-macro/#comment-9660 Try this to find the last row: http://www.automateexcel.com/vba/find-last-row-column-cell

]]>
Comment on VBA – Cut, Copy, Paste from a Macro by FURQAN http://www.automateexcel.com/vba/cut-copy-paste-with-macro#comment-9659 Thu, 21 Dec 2017 11:54:54 +0000 http://excelbootcamp.com/vba/cut-copy-paste-with-macro/#comment-9659 I need your help in this formula, i like to create a new tab button in vb, which i already did and using this below formula and code. Problem is this, code is not letting formula paste in correct format .see below i need j23 then j24 then j25 and same below as i click new tab button to create new row with all formula which i use in copy row to be pasted in below new row.

Sub me()
‘Copy Row 36, Insert Row 37
Rows(23).EntireRow.Copy
Rows(24).Insert shift:=xlDown
End Sub

=IF(COUNTIF(I$4:I21,I21)=1,MAX(J$3:J20)+1,VLOOKUP(I21,I$3:J20,2,0)) ( J20 OK )
=IF(COUNTIF(I$4:I22,I22)=1,MAX(J$3:J21)+1,VLOOKUP(I22,I$3:J21,2,0)) ( J21 OK )
=IF(COUNTIF(I$4:I23,I23)=1,MAX(J$3:J22)+1,VLOOKUP(I23,I$3:J22,2,0)) ( J22 OK )
=IF(COUNTIF(I$4:I24,I24)=1,MAX(J$3:J23)+1,VLOOKUP(I24,I$3:J23,2,0)) ( J23 OK ) ( vb copy this row)
=IF(COUNTIF(I$4:I25,I25)=1,MAX(J$3:J23)+1,VLOOKUP(I25,I$3:J23,2,0)) ( J23 WRONG )
=IF(COUNTIF(I$4:I26,I26)=1,MAX(J$3:J23)+1,VLOOKUP(I26,I$3:J23,2,0)) ( J23 WRONG )

]]>
Comment on Save Only One Worksheet by NICOLAE http://www.automateexcel.com/basics-of-excel/save-only-one-worksheet#comment-9546 Fri, 15 Dec 2017 10:44:13 +0000 http://excelbootcamp.com/basics-of-excel/save-only-one-worksheet/#comment-9546 This was a great help for me. Thank you.
Nicolae

]]>
Comment on VBA – Cut, Copy, Paste from a Macro by Macro Learner http://www.automateexcel.com/vba/cut-copy-paste-with-macro#comment-9475 Tue, 12 Dec 2017 05:05:20 +0000 http://excelbootcamp.com/vba/cut-copy-paste-with-macro/#comment-9475 What’s the script to copy and paste to the last row (undefined)

]]>
Comment on VBA – Macro to List all Sheets in a Workbook by Valerie Grunsted http://www.automateexcel.com/vba/list-all-sheets-in-workbook#comment-9116 Thu, 07 Dec 2017 15:06:11 +0000 http://excelbootcamp.com/vba/list-all-sheets-in-workbook/#comment-9116 Thank you!

]]>