<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VBA Code to copy a file on shared Dropbox and paste in another area on a shared Dropbox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/VBA-Code-to-copy-a-file-on-shared-Dropbox-and-paste-in-another/m-p/395178#M21750</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1260637"&gt;@Subtotalatom&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There are different ways. If you plan use your code only on default location for Dropbox folder, then just replace initial part "C:\Users\kurti" with result from Environ("HOMEPATH"). This is the simplest way, but wouldn't work in case of moved Dropbox folder or in case of combined Business and Private account (the folder gets renamed). To work in all cases (doesn't matter place and name of Dropbox folder), you have to parse JSON file describing exact folder(s) place. Follow the notes in &lt;A title="Locate Dropbox Folder" href="https://help.dropbox.com/installs-integrations/desktop/locate-dropbox-folder" target="_blank" rel="noopener"&gt;the according topic&lt;/A&gt; to do this.&lt;/P&gt;&lt;P&gt;Hope this gives right direction.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 13:38:56 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2020-02-06T13:38:56Z</dc:date>
    <item>
      <title>VBA Code to copy a file on shared Dropbox and paste in another area on a shared Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/VBA-Code-to-copy-a-file-on-shared-Dropbox-and-paste-in-another/m-p/395146#M21749</link>
      <description>&lt;P&gt;&lt;U&gt;Hello,&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;i have a spreadsheet that allows user to click a button and add information about the member. this will then add the details to a new row under the subheadings provide.&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;However the main thing the macros does is it copies a folder template on a shared dropbox, renames it and puts in the designated folder.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Private Sub btnSubmit_Click()
    Dim NxtRow As Long
    
    If Trim(tbSchoolName) &amp;lt;&amp;gt; "" Then
        With ThisWorkbook.Sheets("Members")
            NxtRow = .Cells(Rows.Count, 1).End(xlUp).Offset(1).Row
            .Cells(NxtRow, 1) = tbSchoolName
            .Cells(NxtRow, 2) = tbMembershipPackage
            .Cells(NxtRow, 3) = tbArea
            .Cells(NxtRow, 4) = tbContacts
            .Cells(NxtRow, 5) = tbPosition
            .Cells(NxtRow, 6) = tbLandline
            .Cells(NxtRow, 7) = tbMobile
            .Cells(NxtRow, 8) = tbEmail
         
        End With
    
        Dim FSO As Object
        Dim FromPath As String
        Dim ToPath As String
    
        FromPath = "C:\Users\kurti\Dropbox\3. Company X\Name\Folder Template"
        ToPath = "C:\Users\kurti\Dropbox\3. Company x\Contacts\2. Members\" &amp;amp; tbSchoolName
    
        If Right(FromPath, 1) = "\" Then
            FromPath = Left(FromPath, Len(FromPath) - 1)
        End If
    
        If Right(ToPath, 1) = "\" Then
            ToPath = Left(ToPath, Len(ToPath) - 1)
        End If
    
        Set FSO = CreateObject("Scripting.FileSystemObject")
    
        If FSO.FolderExists(FromPath) = False Then
            MsgBox FromPath &amp;amp; " doesn't exist"
            Exit Sub
        End If
    
        FSO.CopyFolder Source:=FromPath, Destination:=ToPath
        
        MsgBox "All done.", , ""
    Else
        MsgBox "You must enter a Supplier Name.", , ""
        tbSchoolName.SetFocus
    End If
End Sub&lt;/PRE&gt;
&lt;P&gt;as you see by the code. it is going through my c drive and to access the dropbox. so another user can not execute the macro as the file path mine and no relevant to theres.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there a way to make so. the excel spreadsheet can access the files on the dropbox for everyuser.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 06:32:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/VBA-Code-to-copy-a-file-on-shared-Dropbox-and-paste-in-another/m-p/395146#M21749</guid>
      <dc:creator>Subtotalatom</dc:creator>
      <dc:date>2020-02-07T06:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Code to copy a file on shared Dropbox and paste in another area on a shared Dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/VBA-Code-to-copy-a-file-on-shared-Dropbox-and-paste-in-another/m-p/395178#M21750</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1260637"&gt;@Subtotalatom&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There are different ways. If you plan use your code only on default location for Dropbox folder, then just replace initial part "C:\Users\kurti" with result from Environ("HOMEPATH"). This is the simplest way, but wouldn't work in case of moved Dropbox folder or in case of combined Business and Private account (the folder gets renamed). To work in all cases (doesn't matter place and name of Dropbox folder), you have to parse JSON file describing exact folder(s) place. Follow the notes in &lt;A title="Locate Dropbox Folder" href="https://help.dropbox.com/installs-integrations/desktop/locate-dropbox-folder" target="_blank" rel="noopener"&gt;the according topic&lt;/A&gt; to do this.&lt;/P&gt;&lt;P&gt;Hope this gives right direction.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:38:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/VBA-Code-to-copy-a-file-on-shared-Dropbox-and-paste-in-another/m-p/395178#M21750</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-02-06T13:38:56Z</dc:date>
    </item>
  </channel>
</rss>

