![]() |
|
#1
|
||||
|
||||
![]()
Creating such equations with VBA using the equation editor gets fairly complex. See: https://software-solutions-online.co...ing-equations/
A simpler alternative might be to use an EQ field. For example: Code:
Sub LongDivision() Dim StrVal As String, Fld As Field StrVal = Trim(InputBox("Amount to divide")) Set Fld = ActiveDocument.Fields.Add(Range:=Selection.Range, Type:=wdFieldEmpty, _ Text:="EQ \s\up6(\f(,\)" & StrVal & "))", PreserveFormatting:=False) Fld.Code.Text = Trim(Fld.Code.Text) Set Fld = Nothing End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Le_Blanc | Word VBA | 10 | 03-22-2021 11:38 AM |
Equations - Bracketed division size | Dan110024 | Word | 0 | 09-03-2015 11:10 PM |
Division by Zero error | Nate | PowerPoint | 1 | 11-29-2012 10:51 PM |
![]() |
hbrt | Word | 1 | 01-24-2012 05:01 PM |
![]() |
gmyls | Excel | 2 | 05-22-2009 02:37 AM |