我可以用Word中的VBA执行此操作吗? [将文字捕捉到网上] [英] Can i do this with VBA in Word? [Catching text into the web]

查看:87
本文介绍了我可以用Word中的VBA执行此操作吗? [将文字捕捉到网上]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每天我都要去这个网站http://www8.tjmg.jus.br/juridico/diario/index.jsp并收集所有Instância/ Foro内的文字(开始)来自内部)并用文字表达。我必须用ctrl + c完成所有的工作。 " CTRL + V" ;.最近,我正在研究VBA,我认为我可以组装一个宏进入链接并复制我需要的东西。



所有链接几乎相同的是这样的http://www8.tjmg.jus.br/juridico/diario/index.jsp?dia = 2911& completa = interior%7C0002"唯一改变的是dia = 2911。这是指日期和月份以及内部%7C0002。这是指索引的代码。



另外,我需要宏只用COMARCA这个词来捕捉东西,如果这个词不存在(如果索引是空的,有一条消息,或者某些错误导致单词COMARCA没有出现),我需要它不复制并列出有问题的那些。

解决方案

这个应该对您有所帮助。

Every single day i have to go to this website http://www8.tjmg.jus.br/juridico/diario/index.jsp and collect the text that is inside all of the "Instância/Foro"(starting from "Interior") and put it in word. I have to do all the labor with "ctrl+c" "ctrl+v". Lately, i was studying about VBA, and i think there is someway i could assemble a macro to enter inside the links and copy the stuff i need.

All the links are almost the same something like this "http://www8.tjmg.jus.br/juridico/diario/index.jsp?dia=2911&completa=interior%7C0002" the only things that change are the "dia=2911" that refers to the day and the month and "interior%7C0002" that refers to the code of the index.

Also, i need the macro to catch things only by the word COMARCA, and if the word isn't there (if the index is empty there is a message, or some bug that makes the word COMARCA to don't appear), i need it to not copy and make a list of the ones with the problem.

解决方案

This should be helpful for you.


这篇关于我可以用Word中的VBA执行此操作吗? [将文字捕捉到网上]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆