Two Factor Authenitfication using VBA in Excel to Download Attachments using a URL

Arty Choke

New Member
Joined
Oct 7, 2009
Messages
9
PROBLEM STATEMENT:
I am unable to open file attachments via a URL using VBA. Instead of getting the file, I am asked to log in.


DETAILS:
  • This was working a couple of months ago.


  • The URL's seem to be OK.


  • The URLs are like this:


  • If I click on the URL, a web browser opens and the typical download process begins, starting with, "What do you want to do with this file?". I click 'SAVE', and it saves. No additional logins required, and I get the workbook I asked for.


  • When executed via VBA, instead of getting my Excel file, I get an Excel file with one worksheet that contains a garbled log in screen.


  • The VBA code is:
Set source_report = Workbooks.Open(cell.Value)<strike></strike>
I suspect that this has to do with two factor authentication, which my company has been using more and more. Like I said, this used to work.

The files I am trying to download are coming from our Wiki that lives in Atlassian's Confluence Server. I am logged in to Confluence Server. I checked.<strike></strike>



Help?
Arty
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,958
Messages
6,175,632
Members
452,661
Latest member
Nonhle

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