I need to try a macro, because TextMaker converts body text to headers when a selection including body text is demoted.
I tried AI, but the variables were unrecognized.
So... CoPilot recommended I ask this way, under the impression that maybe my subscription to SoftMaker Office NX does not include what I need to do this kind of macro.
"Does TextMaker NX Home expose the document object model (ActiveDocument, Selection, Paragraphs, Style, OutlineLevel) in BasicMaker? If not, is there any supported way to select only headings or promote outline levels via macro?"
I'm using TextMaker NX Home (rev S1502.0808) 64bit in Windows 10.
- - - - - The AI-generated macro (that didn't work in my version of TextMaker - - - - -
Sub PromoteSelectedHeadingsOnly
Dim sel As Selection
Dim p As Paragraph
Dim styleName As String
Dim lvl As Integer
Set sel = ActiveDocument.Selection
' Loop through all paragraphs in the selection
For Each p In sel.Paragraphs
styleName = p.Style.Name
' Check if the paragraph style matches "Heading X"
If Left(styleName, 7) = "Heading " Then
' Get current outline level
lvl = p.OutlineLevel
' Promote only if not already at top level
If lvl > 1 Then
p.OutlineLevel = lvl - 1
End If
End If
Next p
End Sub
Macro troubleshooting: Promoting headers
Re: Macro troubleshooting: Promoting headers
I am guessing this is related to this post. AS I asnwered there, I think you came across a bug.
I do not use NX, not do I use Windows, witch rules out me trying whatever is going on with your macro, however... Copilot is terrible (in general, for everything), and the macro it made for you is probably tailored to MS Office and it is assuming that TextMaker and BasicMaker works the same way as MS Office macros. That's AI for you...
I do not use NX, not do I use Windows, witch rules out me trying whatever is going on with your macro, however... Copilot is terrible (in general, for everything), and the macro it made for you is probably tailored to MS Office and it is assuming that TextMaker and BasicMaker works the same way as MS Office macros. That's AI for you...
Post Reply
2 posts
• Page 1 of 1
Return to “SoftMaker Office for Windows (General)”
Jump to
- SoftMaker Office NX and 2026
- ↳ SoftMaker Office NX and 2026 for Windows
- ↳ SoftMaker Office for Windows (General)
- ↳ TextMaker for Windows
- ↳ PlanMaker for Windows
- ↳ Presentations for Windows
- ↳ BasicMaker for Windows
- ↳ SoftMaker Office NX and 2026 for Mac
- ↳ SoftMaker Office for Mac (General)
- ↳ TextMaker for Mac
- ↳ PlanMaker for Mac
- ↳ Presentations for Mac
- ↳ SoftMaker Office NX and 2026 for Linux
- ↳ SoftMaker Office for Linux (General)
- ↳ TextMaker for Linux
- ↳ PlanMaker for Linux
- ↳ Presentations for Linux
- ↳ SoftMaker Office NX for iOS
- ↳ SoftMaker Office NX for iOS (General)
- ↳ TextMaker NX for iOS
- ↳ PlanMaker NX for iOS
- ↳ Presentations NX for iOS
- ↳ SoftMaker Office NX for Android
- ↳ SoftMaker Office NX for Android (General)
- ↳ TextMaker NX for Android
- ↳ PlanMaker NX for Android
- ↳ Presentations NX for Android
- SoftMaker Office 2024
- ↳ SoftMaker Office 2024 for Windows
- ↳ SoftMaker Office 2024 for Windows (General)
- ↳ TextMaker 2024 for Windows
- ↳ PlanMaker 2024 for Windows
- ↳ Presentations 2024 for Windows
- ↳ BasicMaker 2024 for Windows
- ↳ SoftMaker Office 2024 for Mac
- ↳ SoftMaker Office 2024 for Mac (General)
- ↳ TextMaker 2024 for Mac
- ↳ PlanMaker 2024 for Mac
- ↳ Presentations 2024 for Mac
- ↳ SoftMaker Office 2024 for Linux
- ↳ SoftMaker Office 2024 for Linux (General)
- ↳ TextMaker 2024 for Linux
- ↳ PlanMaker 2024 for Linux
- ↳ Presentations 2024 for Linux
- FreeOffice 2024
- ↳ FreeOffice 2024 for Windows
- ↳ FreeOffice 2024 for Windows (General)
- ↳ FreeOffice TextMaker 2024 for Windows
- ↳ FreeOffice PlanMaker 2024 for Windows
- ↳ FreeOffice Presentations 2024 for Windows
- ↳ FreeOffice 2024 for Mac
- ↳ FreeOffice 2024 for Mac (General)
- ↳ FreeOffice TextMaker 2024 for Mac
- ↳ FreeOffice PlanMaker 2024 for Mac
- ↳ FreeOffice Presentations 2024 for Mac
- ↳ FreeOffice 2024 for Linux
- ↳ FreeOffice 2024 for Linux (General)
- ↳ FreeOffice TextMaker 2024 for Linux
- ↳ FreeOffice PlanMaker 2024 for Linux
- ↳ FreeOffice Presentations 2024 for Linux
- ↳ FlexiPDF NX and 2025 for Windows
- ↳ FreePDF 2025 for Windows
- Miscellaneous
- ↳ SoftMaker Fonts
- ↳ Water Cooler
- ↳ SoftMaker Office 2018 for Windows (General)
- ↳ TextMaker 2018 for Windows
- ↳ PlanMaker 2018 for Windows
- ↳ Presentations 2018 for Windows
- ↳ Thunderbird for Windows
- ↳ BasicMaker 2018 for Windows
- ↳ SoftMaker Office 2018 for Mac (General)
- ↳ TextMaker 2018 for Mac
- ↳ PlanMaker 2018 for Mac
- ↳ Presentations 2018 for Mac
- ↳ SoftMaker Office 2018 for Linux (General)
- ↳ TextMaker 2018 for Linux
- ↳ PlanMaker 2018 for Linux
- ↳ Presentations 2018 for Linux
- ↳ SoftMaker Office 2021 for Windows
- ↳ SoftMaker Office 2021 for Windows (General)
- ↳ TextMaker 2021 for Windows
- ↳ PlanMaker 2021 for Windows
- ↳ Presentations 2021 for Windows
- ↳ BasicMaker 2021 for Windows
- ↳ SoftMaker Office 2021 for Mac
- ↳ SoftMaker Office 2021 for Mac (General)
- ↳ TextMaker 2021 for Mac
- ↳ PlanMaker 2021 for Mac
- ↳ Presentations 2021 for Mac
- ↳ SoftMaker Office 2021 for Linux
- ↳ SoftMaker Office 2021 for Linux (General)
- ↳ TextMaker 2021 for Linux
- ↳ PlanMaker 2021 for Linux
- ↳ Presentations 2021 for Linux
- ↳ SoftMaker Office 2021 for Android
- ↳ SoftMaker Office 2021 for Android (General)
- ↳ TextMaker 2021 for Android
- ↳ PlanMaker 2021 for Android
- ↳ Presentations 2021 for Android
- ↳ SoftMaker Office 2021 for iOS
- ↳ General
- ↳ TextMaker 2021 for iOS
- ↳ PlanMaker 2021 for iOS
- ↳ Presentations 2021 for iOS
- ↳ FreeOffice 2021
- ↳ FreeOffice 2021 for Windows
- ↳ FreeOffice 2021 for Windows (General)
- ↳ FreeOffice TextMaker 2021 for Windows
- ↳ FreeOffice PlanMaker 2021 for Windows
- ↳ FreeOffice Presentations 2021 for Windows
- ↳ FreeOffice 2021 for Mac
- ↳ FreeOffice 2021 for Mac (General)
- ↳ FreeOffice TextMaker 2021 for Mac
- ↳ FreeOffice PlanMaker 2021 for Mac
- ↳ FreeOffice Presentations 2021 for Mac
- ↳ FreeOffice 2021 for Linux
- ↳ FreeOffice 2021 for Linux (General)
- ↳ FreeOffice TextMaker 2021 for Linux
- ↳ FreeOffice PlanMaker 2021 for Linux
- ↳ FreeOffice Presentations 2021 for Linux
- ↳ BETA SoftMaker Office 2024 for Windows
- ↳ BETA SoftMaker Office 2024 for Windows (general)
- ↳ BETA TextMaker 2024 for Windows
- ↳ BETA PlanMaker 2024 for Windows
- ↳ BETA Presentations 2024 for Windows
- ↳ BETA BasicMaker 2024 for Windows
- ↳ BETA SoftMaker Office 2024 for Mac
- ↳ BETA SoftMaker Office 2024 for Mac (general)
- ↳ BETA TextMaker 2024 for Mac
- ↳ BETA PlanMaker 2024 for Mac
- ↳ BETA Presentations 2024 for Mac
- ↳ BETA SoftMaker Office 2024 for Linux
- ↳ BETA SoftMaker Office 2024 for Linux (general)
- ↳ BETA TextMaker 2024 for Linux
- ↳ BETA PlanMaker 2024 for Linux
- ↳ BETA Presentations 2024 for Linux
- ↳ BETA SoftMaker Office NX for Android
- ↳ BETA SoftMaker Office NX for Android (general)
- ↳ BETA TextMaker NX for Android
- ↳ BETA PlanMaker NX for Android
- ↳ BETA Presentations NX for Android
- ↳ BETA SoftMaker Office NX for iOS
- ↳ BETA SoftMaker Office NX for iOS (general)
- ↳ BETA TextMaker NX for iOS
- ↳ BETA PlanMaker NX for iOS
- ↳ BETA Presentations NX for iOS
- ↳ FreePDF 2022
- ↳ FlexiPDF 2022
- ↳ BETA: SoftMaker Office NX and 2026
- ↳ Beta announcements
- ↳ BETA: SoftMaker Office NX and 2026 for Windows
- ↳ BETA: TextMaker NX and 2026 for Windows
- ↳ BETA: PlanMaker NX and 2026 for Windows
- ↳ BETA: Presentations NX and 2026 for Windows
- ↳ BETA: SoftMaker Office NX and 2026 for Mac
- ↳ BETA: TextMaker NX and 2026 for Mac
- ↳ BETA: PlanMaker NX and 2026 for Mac
- ↳ BETA: Presentations NX and 2026 for Mac
- ↳ BETA: SoftMaker Office NX and 2026 for Linux
- ↳ BETA: TextMaker NX and 2026 for Linux
- ↳ BETA: PlanMaker NX and 2026 for Linux
- ↳ BETA: Presentations NX and 2026 for Linux