Connect to Website / gSheet / MSExcel Online Before Executing Codes

austinandreikurt

Board Regular
Joined
Aug 25, 2020
Messages
91
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Is there a vba code in general that can connect to a website(html) or gsheet or msexcel online to see if log-in access that the user will input is "active" or "inactive".
Basically a Userform will prompt first then the user will input a username and password then check that credentials and match it to the active credentials maintained in a website.
Below is an ideal step by step of codes if any:

VBA Code:
Sub Check_On_Site()

UserForm1.Show
'the userform will capture the TextBox1.Value as username1
'the userform will capture the TextBox2.Value as password1
Get url.....(lets say we are using an msexcel online path)
    then the usernames is in Column A of excel online, passwords in Column B, Textjoin username and password in Column C and Status whether Active or Inactive in Column D of MSExcel online
If username1 & password1 is lookup in Column D is Active
Then proceed with the code
Else MsgBox "please check admin for access issue"
End If

End Sub

Thank you in advance!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,215,094
Messages
6,123,069
Members
449,092
Latest member
ipruravindra

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