Results 1 to 3 of 3

Macro with consolidation function not working when using the file in Dropbox folder

Threaded View

  1. #1
    Registered User
    Join Date
    04-07-2015
    Location
    Québec
    MS-Off Ver
    2011
    Posts
    3

    Exclamation Macro with consolidation function not working when using the file in Dropbox folder

    Hi all,

    I have worked a lot on a personal organizer with a consolidation function retrieving infos of other sheets on the same workbook. I used a macro to consolidate each time I use the file.

    My problem is that the path to the consolidation sheets is pointing to a wrong location. When I uses the file on my desktop, it works perfectly. But I really want to use it on Dropbox for ease of access.

    My file was initially in the Dropbox folder and here are the steps I have taken to do the macro:
    Record the Macro
    1) Consolidate date from sheets using the table name ex: perso, quadruplex, etc.)
    2) sort, etc.)
    Stop recording.

    Basically, it works perfect, but when I use again the macro, it says Cannot open consolidation source file 'main-to-do-list.xlsm'.

    Please help me to fix this. I am very STUCK and don't know what to do to fix it.


    Sub maj()
    '
    ' maj Macro
    '
    
    '
        Selection.consolidate Sources:=Array( _
            "'Macintosh HD:Users:jeanmichel:Desktop:main-to-do-list.xlsm'!sheet1table" _
            , _
            "'Macintosh HD:Users:jeanmichel:Desktop:main-to-do-list.xlsm'!sheet2table" _
            , "'Macintosh HD:Users:jeanmichel:Desktop:main-to-do-list.xlsm'!sheet3table", _
            "'Macintosh HD:Users:jeanmichel:Desktop:main-to-do-list.xlsm'!sheet4table" _
            , _
            "'Macintosh HD:Users:jeanmichel:Desktop:main-to-do-list.xlsm'!sheet5table" _
            ), Function:=xlSum, TopRow:=True, LeftColumn:=True, CreateLinks:=False
        ActiveWindow.SmallScroll Down:=-51
    End Sub
    Sub format()
    '
    ' format Macro
    '
    
    '
        Rows("4:4").Select
        Selection.ClearContents
        Range("A11").Select
        ActiveWindow.SmallScroll Down:=-26
        ActiveWorkbook.Worksheets("Index").ListObjects("Table137").Sort.SortFields. _
            Clear
        ActiveWorkbook.Worksheets("Index").ListObjects("Table137").Sort.SortFields.Add _
            Key:=Range("Table137[[#All],[Ratio (I/T)]]"), SortOn:=xlSortOnValues, _
            Order:=xlDescending, DataOption:=xlSortNormal
        With ActiveWorkbook.Worksheets("Index").ListObjects("Table137").Sort
            .Header = xlYes
            .MatchCase = False
            .Orientation = xlTopToBottom
            .SortMethod = xlPinYin
            .Apply
        End With
        Range("Table137").Select
        Selection.Rows.AutoFit
        ActiveWindow.SmallScroll Down:=-329
        Range("B15").Select
        ActiveWindow.SmallScroll Down:=-64
    End Sub
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro works in every folder except dropbox folder
    By luismarq in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-02-2015, 08:31 AM
  2. Excel VBA Code to upload a file to Dropbox using the Dropbox API
    By gb# in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-02-2014, 03:41 PM
  3. Consolidation not working when moving file!!
    By flexn in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-18-2014, 11:58 PM
  4. [SOLVED] Macro to open a file on Dropbox from any computer
    By ricdamiani in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-30-2013, 02:48 AM
  5. Macro to open a file on dropbox from any computer
    By skip2mylew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2013, 06:03 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1