triplebeta / TrelloExcelConnector

Import a Trello board into Excel, publish rows of data as cards and sync back changes from existing cards.
MIT License
16 stars 4 forks source link

The macro is not working in office 2016 #7

Closed dmontoya3 closed 6 years ago

dmontoya3 commented 6 years ago

After running the process to authorize the file, the buttons stay greyed-out.

triplebeta commented 6 years ago

Sorry to hear, let me check it, will be sometime next week.

Op vr 20 jul. 2018 22:39 schreef dmontoya3 notifications@github.com:

After running the process to authorize the file, the buttons stay greyed-out.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/triplebeta/TrelloExcelConnector/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AHs5DR92soZvFgQo044cp3ckvm32zH7Bks5uIjH0gaJpZM4VZEvY .

triplebeta commented 6 years ago

I also work with Excel 2016 (as part of Office 365), just checked to see what could cause this. There should be no difference between the Office versions since it does not rely on any Office-version specific settings. The buttons will become enabled only if your settings are correct.

I tested it again with invalid and valid settings to see that it indeed works like that and it did in my case. Can you please check that you pasted the values in the right textboxes? It's easy to swap some ;)

It might be helpful to press ALT-F11 (which starts up the Visual Basic tooling) to check the error message that you will see in the box at the bottom ("Direct" window). If one of the values is incorrect, it will tell you there.

Hope it helps.

dmontoya3 commented 6 years ago

Thanks for your reply. I'm getting this error ERROR - RestHelpers.ExecuteRequest: -2147012739

dmontoya3 commented 6 years ago

Also, I've just tried the 9 possible combinations of entering the key, token and secret codes just in case there was an issue with the labels or something else. Still with the 9 combinations, the buttons stay greyed out.

I have the "enable all macros" option activated in the trust center

danielvand commented 6 years ago

Hi, I seem to have the same problem. The URL is perfectly OK (copy+paste in browser and it works). it gives the following error "An error occurred in the secure channel support " code: -2147012739 when calling Http.Send.

danielvand commented 6 years ago

Think I've the solution, in Public Function PrepareHttpRequest in "RestHelpers" change Set Http = CreateObject("MSXML2.ServerXMLHTTP.6.0") to Set Http = CreateObject("MSXML2.XMLHTTP.6.0")

and comment out Http.setTimeouts TimeoutMS, TimeoutMS, TimeoutMS, TimeoutMS (so it won't have time outs, but that function isn't available)

It now works for me!

dmontoya3 commented 6 years ago

That did the trick. Thanks for the help!!

triplebeta commented 6 years ago

@danielvand thanks for posting the solution! Seems like I could not reproduce it since I use no proxy server. I updated the macro according and published the update as version 1.2.2.