Excel의 스프레드 시트에 제품 이름 목록이 있습니다. 내가 원하는 것은 (1) 각 제품 이름을 5 행씩 분리하고 (2) 지정된 웹 사이트 (clinicaltrials.gov)에서 데이터를 추출하고 각 스프레드 시트 아래의 행에 채우는 웹 사이트 검색을 설정하는 것입니다.Excel에서 웹 사이트 검색
(2)는 나에게 훨씬 중요하고 도전적입니다. 모든 제품 이름을 검토하는 루프를 실행해야한다는 것을 알고 있습니다. 그러나 루프에 집중하기 전에 웹 사이트 검색을 실행하는 코드를 작성하는 방법을 알아내는 데 도움이 필요합니다.
내가받은 도움 : 같은
="URL;http://clinicaltrials.gov/ct2/show?term="& [Cell Reference to Drug name here] &"&rank=1"
그리고 출력 4 라인 :이
다음 엑셀 VBA 코드 snipet이의 형태로 구성 URL로 셀을 취할 것
Estimated Enrollment: 40
Study Start Date: Jan-11
Estimated Study Completion Date: Apr-12
Estimated Primary Completion Date: April 2012 (Final data collection date for primary outcome measure)
With ActiveSheet.QueryTables.Add(Connection:= _ ActiveCell.Text, Destination:=Cells(ActiveCell.Row, ActiveCell.Column + 1)) .Name = "Clinical Trials" .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .BackgroundQuery = True .RefreshStyle = xlInsertDeleteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .WebSelectionType = xlSpecifiedTables .WebFormatting = xlWebFormattingNone .WebTables = "12" .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = False .Refresh BackgroundQuery:=False End With,
검색어의 결과를 볼 수 있도록 샘플 약 이름을 게시 할 수 있습니까? – JimmyPena