VBA Macro Loop with User Interaction

sylvesterbetta

New Member
Joined
Nov 29, 2018
Messages
18
Hi guys,

Will need your assistance in help as I do not have basic VBA programming.

I am trying to create an excel file to fill up the information required by the webpage automatically. Currently I have almost 2000 customer data awaiting to be updated.

Upon login into the webpage, the steps as follows:

1. update customer's data base on the first cell A2 as shown in Sheet 1
2. click on the submit button
3. once the submit button is click, there's a pop up floating bar requesting for the appeared validation code to be entered
4. loop to capture the 2nd customer data from A3

Base on the code I had written it will loop so long as I didn't enter the validation code. I did some read up and realise that excel vba doesn't allow user interaction. I wonder is it true? And also is there any way to over come this problem?

Your help is much appreciated.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Have you tried something like this to capture an answer?
Code:
Sub UserInput()
Dim Answer As String
Answer = InputBox("Please tell me your favorite fruit", "Fruit Cake")
ThisWorkbook.Sheets(1).Cells(2, 2).Value = Answer
End Sub
 
Upvote 0
Does the validation code need to be entered manually?

Is it some sort of captcha?
 
Upvote 0

Forum statistics

Threads
1,202,987
Messages
6,052,932
Members
444,616
Latest member
novit19089

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top