excel

Extracting table data from website using chrome

笑着哭i 提交于 2021-02-11 15:09:40
问题 i want to extract table data from website with chrome browser with selenium. i wrote below code but it's not working Sub Chartinka() Dim bot As New WebDriver, posts As WebElements, post As WebElement, i As Integer, mysheet As Worksheet, keys As Selenium.keys bot.Start "chrome", "https://chartink.com/screener/buy-15m-78" bot.Get "/" Set posts = bot.FindElementsByXPath("//*[@id='DataTables_Table_0']/tbody/tr[1]") i = 2 Set mysheet = Sheets("Sheet3") For Each post In posts ' Run time Error '438'

Nodes in XML does not appear to be identified/utilizable

前提是你 提交于 2021-02-11 15:01:20
问题 I am probably making some kind of stupid mistake here, but I'm stuck, so hopefully some of you can help me out. I Have loaded an XML to xmlDoc through post, using DOMDocument and XMLHTTP Set xmlhtp = CreateObject("MSXML2.XMLHTTP.6.0") Set xmlDoc = CreateObject("MSXML2.DOMDocument.6.0") When I recieve the response from the API I write it to a cell to check the response, and it loads there. I find my Nodes and my information. I write it to a cell with With xmlhtp .Open "post", sURL, False

Import text files contents and name of text file into Excel with a macro

强颜欢笑 提交于 2021-02-11 14:59:52
问题 I have this code below which partially works. Cats.txt (Contents: grey, blue, black) Dogs.txt (Contents: pink, red, orange) Cow.txt (Contents: black, white) This is what I would like to get: Dim objFSO As Object Dim objFolder As Object Dim objFile As Object Dim strPath As String Dim strName As String ' Specify the folder... strPath = "C:\Users\User\Desktop\TEST\" ' Use Microsoft Scripting runtime. Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(strPath

Split Time Range into Half Hour Each Row

筅森魡賤 提交于 2021-02-11 14:58:28
问题 I have a data set that look like this And i want to split it so the data becomes like this Any vba code idea? Thank you! I have tried this code from user in another forum but it only show 1 hour time interval. Could you please help me to make it become 30 min time interval? Sub sample() Dim bufF As String, bufT As String, NO As String, name As String, day As String Dim i As Long, j As Long, LastR1 As Long, LastR2 As Long Dim ws1 As Worksheet, ws2 As Worksheet Dim x() As String, y() As String,

How to store email attach csv file content as variable in azure logic app

风格不统一 提交于 2021-02-11 14:54:30
问题 I get a csv file as email attachment.I need a way to read email attachment and save that attachment as variable or directly read the attach file content and get data or store in blob storage.( If csv file save in blob , how we can read it. ) note - This csv file has data about system processes.I want to get only yes process from the attach csv file and continue the integration. ex- onboarding process | yes billing process | no 回答1: For your requirement about " If csv file save in blob , how

Excel 2010 Data Validation allow specific layout

女生的网名这么多〃 提交于 2021-02-11 14:49:14
问题 I want to apply data validation to reference numbers, to force the following layout (ideally uppercase only): XX_NNX-XX_NNN_NN-XXX X = Numbers N = Letters Ex: 12_AB1-23_ABC_AB-123 The following custom formula allows all of it except for numbers - is there any workaround for this? I don't want to use * since it allows for more characters than I want. =COUNTIF(A1,"??_???-??_???_??-???") 回答1: You can choose AND to add a condition to the function you have already written. e.g. following shall

Apache POI custom data format is modified

妖精的绣舞 提交于 2021-02-11 14:44:12
问题 I'm using Apache POI to alter an Excel file and put some data in it. Most of what I try goes well. However my currency formatting is not done 100% correctly... What I want is my currencies to be format like € 1.000,43 . So the Euro sign on the left, the amount on the right with dot as thousands separator, comma as the decimal separator and two decimals. If I do that in Excel and apply this custom formatting rule it works: "_ [$€-nl-BE] * #.##0,00_ ;_ [$€-nl-BE] * -#.##0,00_ ;_ [$€-nl-BE] * \"

(Excel VBA): Accessing JSON file - operation timed out

ぃ、小莉子 提交于 2021-02-11 14:40:57
问题 I'm attempting to pull data from a JSON file on the web. I'm using a dummy JSON file for the time being to get things working. My code is below, but it times out every time and doesn't return anything. The same happens if I use different URLs also. Sub Test() Dim strResult As String Dim objHTTP As Object Dim URL As String Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1") URL = "https://jsonplaceholder.typicode.com/posts/2" objHTTP.Open "GET", URL, False objHTTP.Send strResult = objHTTP

Selenium Basic VBA focus on new tab that is opened by Click

偶尔善良 提交于 2021-02-11 14:34:06
问题 I'm working on the Selenium Basic Wrapper for Excel VBA, but upon clicking a button that opens a new tab, I am unable to get the selenium web-driver to switch focus onto the new tab that is opened, and to close the original tab.. Believe this should be achievable using the Java Selenium, but is there any way to do it through the Selenium Basic wrapper on excel VBA? Have tried using bot.switchtopreviouswindow/nextwindow to no avail, Selenium does not even seem to detect the new tab/window

How do I combine duplicate rows without losing unique data in R or VBA?

我只是一个虾纸丫 提交于 2021-02-11 14:32:18
问题 I have a table in excel where there's unique columns but many duplicate rows. Duplicates is measured by the column "uniqueID" which is an email stored as a string. Rows can have the same uniqueID but with missing data in other columns, or different data in the same column. I want to be able to combine and merge these duplicate rows such if the same uniqueID has the same response for the strings will be combined and concatenated such that data won't be lost. All data are strings. I've tried