Macro Based Spreadsheet with XML information

FOM

New Member
Joined
Jun 5, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi there
I work for a Hotel and we use Opera Cloud.
I extract a report from this and it unfortunately is downloaded in XML
I then have to adjust the sheet and then copy it into another sheet to Upload to a Housekeeping report on Opera Cloud
Its time consuming and the receptionist dont get it right

So I want to make a Spreadsheet that I can have them run Macro's on and it does what we require for them.

Example. Download the XML information into Sheet 2 - Make a macro that adjusts the sheet to the Format I need and then arrange the Categories the way it needs to be.
Then a Macro copies this information from sheet 2 to Sheet 1.

Please see attached

So image 2.. with red writing is how the sheet needs to look after u extract information from image 1
There is a HUGE amount of Columns I need to delete then arrange the order in how they are placed then change the date format before i have the macro copy it to the final sheet (image 2)

Can anyone give me an idea... I have made macros before but this is constantly coming up with debug errors..

Basically want a job that takes 1 hour to be 5 minutes in the end
 

Attachments

  • Extract information.png
    Extract information.png
    49 KB · Views: 11
  • Final outcome .png
    Final outcome .png
    66.2 KB · Views: 11
  • Data Extract large.png
    Data Extract large.png
    65.4 KB · Views: 11

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
You could have that all work in one large step if you use Data, Get Data, From File, From XML to get your data in and subsequently mangle the data: re-order columns, rename them, get rid of the ones you don't need, etcetera.
 
Upvote 0
I have tried the option you suggested above and it does not work - Can anyone else assist me please.
Ideally i want it to be macro based for my staff to use and not have human error
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top