Hi Mandeep,
I have tried to run this code & it running properly. Its opening the file but unable to download the file because we have given the Keys to (*File Menu+Download*) but there is another more options in- *Download As. * So how we will handle this issue. On Mon, Jan 4, 2016 at 3:31 PM, Devendra Sahay < devendrasahanypt...@gmail.com> wrote: > Hi Mandeep, > > Thanks for your prompt reply & The Google sheet which I have, contains > more than 20k rows & its a shared sheet. It requires a login name & id of > my organization domain. So how we will handle this. > > & If a key combination can be added to download the data from web through > VBA > > > > On Mon, Jan 4, 2016 at 3:06 PM, Mandeep Baluja <rockerna...@gmail.com> > wrote: > >> Hey Devendra, >> >> Excel has option in Data tab and "From Web" option to import the data >> from websites,I Tried and found that this Case doesn't work if your sheet >> contains a lot of data and to fetch it will take a lot of time, Instead of >> this what i think is to Download the file first and then use vba to check >> the latest file in your downloads and copy the data into your sheets which >> will be much faster that fetching from spreadsheet and then discard the >> temp sheet. Here the problem comes with automation is you have to work with >> internet explorer to do the same rather than using a GoogleChrome. >> I thoroughly studied to find the shortcut to download a file with Send keys >> it should be like sendkeys "%+FD{Enter}",Once the file will get downloaded >> it is easy to do the rest of work with VBA. Let's see who will implement >> this successfully. >> >> Paul@ can you do one thing to send the keys combination to internet >> explorer. >> >> Sub Fetch_Data_from_Spreadsheet() >> >> Dim ie As Object >> Set ie = CreateObject("InternetExplorer.Application") >> ie.navigate " >> https://docs.google.com/spreadsheets/d/1z1W_cnkiMsQjgHmuoolxrXgm9h54NC0CQiHqtb8KNZk/edit?ts=5607ad6d#gid=0 >> " >> ie.Visible = True >> >> Application.SendKeys "%+FD{Enter}", True >> >> End Sub >> >> Regards, >> Mandeep baluja >> >> >> -- >> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s >> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ >> https://www.facebook.com/discussexcel >> >> FORUM RULES >> >> 1) Use concise, accurate thread titles. Poor thread titles, like Please >> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >> will not get quick attention or may not be answered. >> 2) Don't post a question in the thread of another member. >> 3) Don't post questions regarding breaking or bypassing any security >> measure. >> 4) Acknowledge the responses you receive, good or bad. >> 5) Jobs posting is not allowed. >> 6) Sharing copyrighted material and their links is not allowed. >> >> NOTE : Don't ever post confidential data in a workbook. Forum owners and >> members are not responsible for any loss. >> --- >> You received this message because you are subscribed to the Google Groups >> "MS EXCEL AND VBA MACROS" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to excel-macros+unsubscr...@googlegroups.com. >> To post to this group, send email to excel-macros@googlegroups.com. >> Visit this group at https://groups.google.com/group/excel-macros. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > With Regard !!! > Devendra Rahi > > -- With Regard !!! Devendra Rahi -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at https://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.