Merging of excel Cells using invoke

hi in this example
it would merge cells using assembly.

Main (2) (1).xaml (13.9 KB)

1 Like

Hey, i have actually been looking for a solution like this.
The code seems to work and it does do the merging as instructed, the only issue is that it ends up throwing a runtime error of System.Reflection.TragetInvocationException.


Any ideas on how to fix this issue?

Edit: Nvm, the issue was because i didnt have a “sheet2” which caused the error!