VBA Code to point to BoxSync - vba

I have a program that I need to run, which I have written it in VBA.
Currently I am pointing to folders in C: drive and our A drive.
This is all being structured and i need to run of Box Sync, this is however user account based.
Could anyone give me any pointers how to go about using Box Sync to point to?
Many thanks.

I have resolved this assigning variable to Environ("USERPROFILE") + hardocoding rest of the link.

Related

Google Apps Scripts for Creating a Folder Structure

I'm a total newb when it comes to thins like this and I'm trying to do pretty much the same thing. I've found Google Apps Scripts (yay for me :-) and now I'm actually trying to get this working the first time. So I've populated this text into the first window and then I click deploy? I'm a bit lost. Can you help a newb out?
Secondly, I'm trying to create a scripts when triggered, it creates a file structure
Main Dir = CLIENT_Name
Subdirectories = Photos, Plans, Proposals, Material Selections
This folder structure should be created in a folder already in my Google drive.
How would this change the above script, and how do I actually got about triggering this script?
Thank you so much for your help!!!

Using VBA can I access another computer's desktop that is on the same network as me?

I finished a program for one of my colleagues but the final section of the program needs to start an executable file which is on a different PC. In this case the PC being used is called SYS1-PC and it needs to tell EDITING-PC that it should double click an executable file on its desktop.
I thought it might be something like this:
RDPWindow = Shell("C:\Users\FORMAT.PLIM\Desktop\testing.exe /v:" & "[IP ADDRESS]", 1)
But I just get file not found. Now I am not sure does that mean it has found the computer or does that mean it looked for that on my own C drive?
Cheers for any help

Can't copy to network path using Filesystem.filecopy or FileSystem.CopyFile

I'm trying to copy a file from a local computer to a remote share but I get an exception saying "Can't find the specified file".
My.Computer.FileSystem.CopyFile("C:\filename.jpg", "\\focserver2\consultoria\teste\filename.jpg")
The remote shared folder has full control permissions on "Everyone".
What am I doing wrong? Or it's not possible to copy to network paths using FileSystem.CopyFile ?
Thanks.
João
The issue does not appear to be the destination but the source. I assume that the sample you showed above is NOT the real code and in the real code, you combine a couple values together to define the source. To help prevent issues, get in the habit of using the Path.Combine() method when concatenating strings for a file path. It's a life-saver.
The next most important thing is to learn how to debug your code by setting break-points and seeing what the values of your combined strings are before posting to websites. This is a good one to get you started. http://weblogs.asp.net/scottgu/debugging-tips-with-visual-studio-2010
Most likely the problem is that you are trying to access the root folder of the C:\ drive. This folder is generally locked down by the operating system, and even simple file operations don't work easily there.
Try copying the file from a subfolder e.g.
My.Computer.FileSystem.CopyFile("C:\Temp\filename.jpg", "\\focserver2\consultoria\teste\filename.jpg")

MS Access Split Database - Run time error with backend in new drive location?

I have an MS Access split database and I'm trying to get it to work with the backend on a new, more secure drive on our network. I've used a UNC path for the backend location.
This database has been running without problem on another drive which is totally public to everyone in the company (~4k people, not secure) for about a year. We have a generic account for users to access the database throughout our factory and haven't encountered this problem before I tried to switch it to the new drive. I've contacted our IT department and they've given myself and all my user's accounts read/write access to the drive, but only I can run it.
Other user accounts get these problems...
All of my forms with objects bound to a table immediately throw a runtime error before even getting to Form_Load.
My userforms will run DLookup functions and execute message boxes but throw a runtime error when they go to execute a query.
I've tried using an 'On Error goto' to try and actually find the problem but it throws a runtime error before that.
I can't think at all what the problem might be. IT have told me I have the same permissions as the other users. Any suggestions on what to do?
In the front end of your DB you may have to change the path which links to the tables. The tables are in the back end of the database, which you have now moved and therefore changed the filepath. the frontend wont find them. You can delete the table links in the front end then use External data > import and Link > Access. In order to re-link the tables using their new filepath. You would then need to redistribute your frontend to the users.
I'm not sure if you have already done this, however, you haven't suggested so in your question. hope this helps, apologies if it was helpless.
I hope you have found an answer to this. I wanted to answer as well, because I had the exact same problem yesterday. It turned out that the location was referring other users back to the folder's shortcut name versus it's full length name (it is called the W drive on my computer and the K drive on theirs). I solved the issue by spelling out the name in full.

SSRS 2008 emailing Reports

Was wondering if anyone could help me out. I have written a report in SSRS 2008. I would like to add a button or a link on the page that will email the currently run report.
I know I can do this in subscription and set a schedule for this however the data needs to be checked before an email can be sent out.
Thanks for taking a look
Rusty
Essentially what you want to do is put a mailto link on the page that generates an email when the user clicks on it. There is a component of the mailto link which will include an attachment. However, the attachment must be a locally housed file, it cannot be stored at a web address. See more here.
If the report you are running does not require many resources, you can set up a subscription which will, on a scheduled basis (say every 5 minutes), write the report to a file on a shared drive. Therefore, the report is constantly being written and updated at a local path. Then, you should be able to use the "&attachment=" portion of the mailto link to refer to this subscription-generated file sitting somewhere on a shared drive. This might not be a good option for you if you're counting on up-to-the-second data in this report you're generating. Then again, if you're having the report manually reviewed by human eyes, then that's probably not too much of an issue.
If you pursue this solution, it will be important to keep in mind that whatever shared drive you have your subscription write the file to will need to be accessible by anyone that will be clicking on that mailto link. It's not sufficient for you to have access to it. When that mailto link is clicked, it will use Windows authentication (or authentication from whatever system you're using) to connect to that shared drive and retrieve the file.
Best of luck!