The difference is one of focus: when you use the present perfect, you make a connection between a past action and the present.
So in your second examples:
2a. In writing this I have tried ...
2b. In writing this I tried ...
2a suggests a present connection (perhaps you are still writing it), whereas 2b puts the "writing" firmly in the past (perhaps you wrote it a year ago).
- For Teachers