Error 76 - path not found, using FileSystemObject.GetFolder() with SharePoint address - vba

What could be going on here?
I'm using:
Dim FOL As folder
Dim fs As New FileSystemObject
Set FOL = fs.GetFolder("//mycompany.sharepoint.com/etc/etc/")
And on my laptop it's working perfectly.
Last week, it worked on my colleague's laptop perfectly. This week, it works on mine but it doesn't work on my colleague's! It gives a run-time 76 : 'Path not found' error.
We've both tried pasting the link directly in to an IE browser and it connects fine. So what could have changed between last week and this week to make it stop working on my colleagues' yet still work OK on mine?
One additional piece of info: On my browser in SharePoint I have the option to "Open with Windows Explorer" but my colleague doesn't.
EDIT: I believe my question is different to the similar here because this WAS working and now it wasn't. I'm asking what could have changed and is it linked to the lack of Action "Open with Windows Explorer".

You could map the SharePoint folder to a drive letter.
This solution is discussed here:
Get the content of a sharepoint folder with Excel VBA

Related

Access 2007 – Unable to Get "AcrobatPDFMakerForOffice" to Work

I am trying to help a small company that is using an .mdb database in Access 2007. Their previous programmer left little documentation, unfortunately. The problem occurs when they call some routines that are intended to create a PDF file from an Access report. The routines were written by Stephen Lebans, and are supposed to be safe and stable. The Lebans routines are called by VBA code.
Here is some more info. The company has a small network with two workstations. On one workstation everything works fine; it is able to call the Lebans routines and create a PDF file. On the second workstation the code appears to execute but no PDF is created. Adobe Acrobat DC was installed recently on both PCs. The problem creating PDF files on PC#2 began after they installed Acrobat DC.
I will probably call Adobe tech support to get their help. But before that I hope someone can help with several questions I have.
Question 1 - In the VBA editor, in Tools -> References, I see that "AcrobatPDFMakerForOffice"
is checked. Please let me know if I should have checked some other reference instead.
Question 2 - The "AcrobatPDFMakerForOffice" in Tools - > References seems to refer to the following file: "c:\Program Files (x86)\Adobe\Acrobat 2015\PDFMaker\Office\AcrobatPDFMakerForOffice.tlb" ,
which is a type library file. Does that seem OK? Or should it point to a "dll" or "exe"?
Question 3 - On PC#1, which is creating PDFs correctly, if I click the Office button inside Access,
select Access Options, then select Add-Ins, I see "Acrobat PDFMaker Office COM Addin" under the heading "Active Application Add-Ins". And the file it refers to is:
"c:\Program Files (x86)\Adobe\Acrobat 2015\PDFMaker\Office\PDFMOfficeAddin.dll".
On PC#2, however, there is nothing listed under "Active Application Add-Ins". So I attempted to add it.
I clicked "Go" next to "Manage COM Add-Ins" at the bottom of the screen; then clicked "Add..." in the
"COM Add-Ins" window that appeared; then navigated to the file "c:\Program Files (x86)\Adobe\Acrobat 2015\PDFMaker\Office\PDFMOfficeAddin.dll"; then click "Add". But nothing appeared under the heading "Active Application Add-Ins".
Any thoughts on how I can add "PDFMOfficeAddin.dll" to the Active Add-Ins list; or if I need to at all?
Thank you!
Cross Posted Here https://www.access-programmers.co.uk/forums/showthread.php?t=295390
As pointed out in that post Access can create a PDF natively now. There is no need of the Lebans code.

Outlook 2013 'Run a script' rule has disappeared

I have some rules for work in outlook 2013 - however following my laptop crashing the other day, I can no longer run any rules, they simply do not work (I don't even get a debug notification). Upon checking my macros, I found that when I tried to click on any scripts I have and I keep getting the message 'This action is not available in the current mode'.
The option to create a new script has disappeared from the rule list too.
So far I have tried:
-Using the outlook 2016 fix by running the registry fix DWORD 1 (There is nothing out there for 2013). I have restarted my Pc and it still has not changed a thing.
-System restore to a previous date. This has literally changed nothing.
I'm a little stuck. I have attached screenshots to further explain exactly what I am experiencing.
Thanks,
Rachael
Some information has been whited out due to confidentiality.
Trust Centre Settings:
I encountered this issue after a Windows Update. Here's what fixed it for me:
Save everything below the line as a .reg file and then double-click it to run and launch (or manually add it your registry via regedit).
You should probably backup your registry first to be safe and please note that this was the correct location for my Office 2013 installation (yours may be different).
Office 2013 = 15.0
Office 2016 = 16.0
Save using Notepad as a .reg file to double-click and upload to your system's registry (Office 2013). I hope this helps someone else! -Mike
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Security]
"EnableUnsafeClientMailRules"=dword:00000001
here is a quick and dirty test to check whether vba code runs at all when email arrives
put it into "ThisOutLookSession" which is under "Microsoft Office Outlook Objects"
then send yourself an email ... if vba runs then you should see a popup
it will not solve your problem, but it will provide more info to help narrow down the cause
Private Sub Application_NewMailEx(ByVal EntryIDCollection As String)
MsgBox "you have mail"
End Sub
Or you can create .reg file Open Notepad and save-as .reg
Outlook 2010
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\14.0\Outlook\Security]
"EnableUnsafeClientMailRules"=dword:00000001
For Outlook 2013 use \Office\15.0\ and Outlook 2016 \Office\16.0\

Run time error "5981" Could not open macro storage

I'm getting this error message: "Run-time error 5981. Could not open macro Storage" This happens when I'm creating a new Word document using a template. The code is posted below. When we run this macro. It create a new document but it shows the error. Please help where i am doing wrong.
Sub AddTemplate1()
Documents.Add Template:="C:\Program Files\Microsoft Office\Templates\Letter_Portrait_Template_CONFIDENTIAL.dotx"
End Sub
I also experienced this error.
After weeks of searching the internet, tried everything what was suggested: Setting authorization, renewed my Normal.dotm etc etc.
I finally solved the problem by changing the compatibility - mode from 'windows xp' to its normal mode (windows 10 in my case) for the (yes outdated) VB6.exe

.xlsm file working in Excel-2013, not working in Excel-2016

I'am developing a tool in Excel, where I use a few macros. Around one month ago, when I tried to open the file in my Excel 2016, I got a "no response" when I enabled the macros. It was all right before that. Moreover, when this happened, all my saved files from past 3 months were not working aswell.
Does anyone have any idea, what could be the reason for that?
I use some userforms, for example one which asks for password to the file, opened by the workbook_open() sub.
I have found out, that I need to do an actualization of my excel 2016 in order to make it work. I have no idea, why it was not working, the weird part is that i have downloaded the excel 2016 in the same day, so I was expecting it to be updated. Anyway, it worked.

How do you hyperlink to Word 2007 help pages?

I want to hyperlink to a page within the Word 2007 Object Model Reference documentation, that ships with Word 2007. These are webpages that use the ms-help:// protocol that Firefox cannot understand.
So I wanted to specify the ms-help:// path of the help page as a command line argument to the viewer, CLVIEW.EXE.
C:\Program Files\Microsoft Office\Office12\CLVIEW.EXE
Does anybody know the command line syntax for this?
CLVIEW.EXE doesn't support command line parameters to launch to a certain page. It's usually used to launch your own custom help file within the hosted Office application.
With Word 2007 there are some options available. They depend, let me repeat, they depend on whether your help is in online or offline mode.
If your intent is simply to get
people to a specific Word help page
and they have internet access, you can grab the URL from the help file
in online mode. To do this,
just right-click on the page you
want the link, for example the
Make the text bold page, to and click Properties. Then copy the URL
(Address) which is:
http://office.microsoft.com/client/helppreview.aspx?AssetID=HA100215341033&ns=WINWORD&lcid=1033. This will work just fine in FF (if you were in Offline mode, this
same link would have been:
ms-help://MS.WINWORD.12.1033/WINWORD/content/HA10021534.htm.)
If you are first sending them to
Word, you can run an macro that
brings up this topic. You grab the
"Topic ID" from right-clicking on
the page Make the text bold page
(which, in this case is
"HA10021534") and put that ID as the
first parameter, like the below.
NOTE: This should work in both
online and offline mode.
Sub DisplayHelpTopic()
Application.Assistance.ShowHelp "HA10021534", ""
End Sub
For developer documentation with the
solution for #2, if you are in
offline mode, you need to set the
scope to "DEV" (which will also work
if you are in online mode). So for
the subject Bibliography Object,
the Topic ID is: HV10096617. If you
are in online mode, you don't need
the "DEV" scope. Code:
Sub DisplayHelpTopic()
Application.Assistance.ShowHelp "HV10096617", "DEV"
End Sub
You can view these documentation pages in Internet Explorer.
Open up your Word docs to the page you want.
Right click, Properties and copy the ms-help:// URL.
Paste this URL in IE, it should open up fine.
Use the command line syntax for IE to hyperlink to it.
Hope that helps, although clicking links in IE may not work properly.
Maybe CLVIEW.EXE has command line syntax that can do this directly.