automatic process

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Automatic process

Automatic process

resolvedResolved · Medium Priority · Version 2007

Quang has attended:
Excel VBA Advanced course

Automatic process

Hi, I would like to ask if it is possible to write a VBA code in Excel to do the following.
1. open a website
2. log in
3. input a date and download a file
4. save it as excel file.
The tricky bit is step 2 & 3. I need to do this everyday, so if I can automate this process, it is very helpful.

Many thank.
Quang

RE: Automatic process

Hello Quang,
Unfortunately this is a tricky piece of code, as the version of browser you use will make a difference. But to point you in the right direction, you'll need to load the Ref Library in VBE, "Microsoft Internet Control".

You'll need to look at the source code of the website to locate the object names that hold the username and password.

You will then need to identify what part of the web page you require, usually a table. Identify the table either by name or loop through table objects.

Build a userform to hold the login details.

Since there are numerous options re: page code used by the website, browser version etc. You may be able to search for specific code related to the particular website you wish to use.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Make a quick copy of a worksheet

Hold down the Ctrl key, then click and drag on a sheet tab to make a copy of that sheet. Though this process usefully copies the formats of the original sheet, note that any Range Names you have on the original sheet will be duplicated too.

To make a copy of a worksheet's contents and formats without duplicating range names: (1) Ensure that you have a blank worksheet to paste to. (2) On the sheet to copy, click on the sheet selection square to the left of Column A's heading to select the whole sheet. (2) Copy the whole sheet. (3) Paste to the blank worksheet.



View all Excel hints and tips


Server loaded in 0.09 secs.