Link to home
Start Free TrialLog in
Avatar of Saqib Husain
Saqib HusainFlag for Pakistan

asked on

VBA: Reformat data exported from software to excel.

I have attached a file exported from an accounting software to excel which inserts the data and merges cells unnecessarily.

Can someone do a macro for me to convert this format to a more excellish layout?
Reformat-software-output.xls
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Hello,

save the file as CSV. Close and re-open. Now you can easily delete empty rows and columns.

cheers, teylyn
Avatar of Saqib Husain

ASKER

Thanks, teylyn but I need a macro to do this. I get such a file frequently and I want to put a button on my ribbon which will simply straighten it.
Also, it would be good if the macro can do a sum of numbers which can be compared with the provided totals.
Avatar of ButlerTechnology
ButlerTechnology

Can you provide a mock up of what the final results should look like?
It should look just the same - but without the extra columns and merged cells
Do you want the merged cells removed starting at B10?
Ok I have done a manual format.


***** File edited ********
Desired-format.xls
ASKER CERTIFIED SOLUTION
Avatar of ButlerTechnology
ButlerTechnology

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect

Thanks