VBA to edit sheet's XML in Excel 2003

taigovinda

Well-known Member
Joined
Mar 28, 2007
Messages
2,639
Hi,

I'm trying to automate Bex 7 with pretty much no success. I can log in and refresh a sheet, but I need to be able to change variable values in order to make the 'rubber meet the road' ...

I see that the bexrepositorysheet has xml attached to it and am guessing that I can change my variables by editing this xml. What I'd like to do is access that XML and change '20110315' so that it says something else (e.g., '20110310'). I think that if I do this, then refreshing my query will get the data that I want.

Does anyone know how to use vba to edit that sheet's xml? So far the only thing I've seen in a lot of time spent trying to figure this out is this:

Code:
XMLScript = Worksheets("BExRepositorySheet").Scripts(1)
Debug.Print XMLScript
...from here: http://forums.sdn.sap.com/thread.jspa?threadID=1708058

Any help would be appreciated - thanks!

Tai
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,052
Latest member
Fuddy_Duddy

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