Skip to content

VBA rename a OneNote page (change the page title) #126617

Discussion options

You must be logged in to vote

Hi, thanks for this! I just try it the same way you wrote it but I had nearly the same thing exept that every time I try to selectsinglenode() with title, the variable stay 'nothing' so not able to update anything. Looks like I just have a page name, when I update the page name, I cannot update the xml... it gives me an error...

onenote.UpdateHierarchy doc.XML works but do nothing , like it just update the old xml

nodepage.Attributes.getNamedItem("name").Text = "allo" to set the page name (nodepage is the page) because as I said selectsinglenode do not works and when I use msgbox nodepage.xml I just see page name, id... but no title even if I have one on the page.

so: xmlDoc.SelectSingle…

Replies: 2 comments 1 reply

This comment was marked as off-topic.

@plafontaine
Comment options

Answer selected by plafontaine
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Programming languages, open source, and software development.
2 participants