Manipulate Excel file w/ automation

Samir Narang 1 Reputation point
2020-10-12T19:45:09.913+00:00

I have an online program that lets me export an excel file.
I then have to edit and manipulate this file further before I can be done.
This is tideous and is done about once a day if not more. I'm hoping to use a Power program to automate this. Please tell me which program is best to use and how i can manipulate the excel program in the best way.

This is my process:
Every file gets an additional 4 lines above and below the row that states "visit total"
and the top 4 each row gets a name in column A and a value in B
the bottom 4 get a name in column A and a formula in column B thru where ever
One of the lines also would import data from another file.

They whole entire thing would then also copy formatting from another excel document.

Do I create a form and use that? or will it be easy to add code to manipulate this?

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Philip Treacy 6 Reputation points
    2020-10-13T01:34:11.45+00:00

    You could use VBA to connect to the website and export the data. Or you could use Power Query.

    Without details of the process it's hard to say which approach is best.

    The data manipulation could also be done with VBA or PQ.

    Please supply detailed explanation of how you connect to the site and export the data

    Phil

    1 person found this answer helpful.

  2. Rich Matheisen 47,901 Reputation points
    2020-10-12T21:12:43.147+00:00

    Use whatever search engine you prefer and look for "powershell excel module". You'll find the module ImportExcel and many other posts about manipulating Excel with PowerShell.

    0 comments No comments

  3. Erin Ding-MSFT 4,476 Reputation points
    2020-10-13T02:17:29.06+00:00

    @ SamirNarang-9818

    We are responsible for general issues of Office desktop clients but your issue is more related to Power program.
    In order to give you an authoritative answer, it’s recommended to post your issue on the following forum,
    Excel for developers.

    Thanks for your understanding.

    Regards,
    Erin


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Wellington Juvenal Ferreira Fonseca 1 Reputation point
    2020-11-18T02:53:05.853+00:00

    I believe that it is best if you enable the developer module and use macros or VBA.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.