VBA rename a OneNote page (change the page title) #126617
-
BodyHi, Its working well exept its not adapted to change page name. Any help would be appreciated, pretty sure the code only needs few lines to includes pages nor remove all relatives to notebooks and sections and only includes pages stuffs... Thanks ! Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
-
The code started to work suddenly... strange but thanks ! |
Beta Was this translation helpful? Give feedback.
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 xmlnodepage.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…