Formatting outputted Excel files from Access using VBA?

后端 未结 4 766
面向向阳花
面向向阳花 2021-01-03 17:01

Here I have some VBA code that outputs a ton of files into Excel files. My question is, from this, is there anyway for it to Format the excel file a bit? What I would like t

4条回答
  •  猫巷女王i
    2021-01-03 17:07

    You could (depending on the number of files) make a template for each file you are outputting. In the long run if someone needs to change the formatting they can change the template which is going to be easier on you now that you don't have to sift through a bunch of excel formatting garbage. You could even let a qualified end user do it.

    It's one of the biggest problems I have with excel sheets if I wrote the VBA I am responsible until I die for it. This way (in theory) they should be able to change a column, without changing how the data is outputted, just presented without you.

    +1 To open the excel file itself and format it using that automation though.

提交回复
热议问题