Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Preserve Excel Column formatting on Refresh

Hi all   I am consuming data in Excel through an API and using Power Query for some transformations. The columns of the Excel Table output are dynamic and driven by the parameters entered by the us...
  • Jimmy801's avatar
    5 years ago

    Hello Anonymous 

     

    in your scenario you are changing column names on every query? The formatting should always be connected to column names... so whenever the name is changed or you remove a formatted column and insert it again after one refresh, the formatting is lost for sure. What you could do is to write a makro that is executed after your refresh, that setups the formatting again.


    If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
    Kudoes are nice too

    Have fun

    Jimmy