<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oscar Sun（孫守真字任真）</title>
    <description>The latest articles on DEV Community by Oscar Sun（孫守真字任真） (@oscarsun72).</description>
    <link>https://dev.to/oscarsun72</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1078524%2Fa7fc9725-8eb5-430f-a769-0a9cfa18b8f4.jpeg</url>
      <title>DEV Community: Oscar Sun（孫守真字任真）</title>
      <link>https://dev.to/oscarsun72</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oscarsun72"/>
    <language>en</language>
    <item>
      <title>Answer: Automatically adding hyperlinks in footnotes in MS Word</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Wed, 03 Jul 2024 11:51:53 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-automatically-adding-hyperlinks-in-footnotes-in-ms-word-4k39</link>
      <guid>https://dev.to/oscarsun72/answer-automatically-adding-hyperlinks-in-footnotes-in-ms-word-4k39</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/78695643/automatically-adding-hyperlinks-in-footnotes-in-ms-word/78701865#78701865" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Automatically adding hyperlinks in footnotes in MS Word
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul  3 '24&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/78695643/automatically-adding-hyperlinks-in-footnotes-in-ms-word/78701865#78701865" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Like @jonsson said use StoryRange object plz, like this, you can try first:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Sub MakeHyperlinks()
Dim afield As Field
Dim url As String
Dim isHyper As Integer
Dim sr As Range

For Each sr In ActiveDocument.StoryRanges
    'For Each afield In ActiveDocument.Fields
    For Each afield In sr.Fields
        If afield.Type = wdFieldIndexEntry&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/78695643/automatically-adding-hyperlinks-in-footnotes-in-ms-word/78701865#78701865" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: MS Word picture replacement with VB.NET, error message for empty clipboard</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Thu, 31 Aug 2023 15:38:03 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-ms-word-picture-replacement-with-vbnet-error-message-for-empty-clipboard-4gf4</link>
      <guid>https://dev.to/oscarsun72/answer-ms-word-picture-replacement-with-vbnet-error-message-for-empty-clipboard-4gf4</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/77015612/ms-word-picture-replacement-with-vb-net-error-message-for-empty-clipboard/77017342#77017342" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: MS Word picture replacement with VB.NET, error message for empty clipboard
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Aug 31 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/77015612/ms-word-picture-replacement-with-vb-net-error-message-for-empty-clipboard/77017342#77017342" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;How about using &lt;a href="https://learn.microsoft.com/en-us/office/vba/api/word.range.formattedtext" rel="nofollow noreferrer"&gt;FormattedText&lt;/a&gt; property instead?&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;    'Button click opens my base document
    Private Sub test123_Click() '(sender As Object, e As EventArgs) Handles test123.Click

        Dim oWord As Object
        oWord = CreateObject("Word.Application")
        oWord.Visible = True
        Dim path As String = "C:\Users\user\basefile\"
        Dim file As String = Dir(path &amp;amp; "*.docx")
        Dim oDoc As&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/77015612/ms-word-picture-replacement-with-vb-net-error-message-for-empty-clipboard/77017342#77017342" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: How to insert table in Word without clipboard using vb.net</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Wed, 16 Aug 2023 03:25:46 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-how-to-insert-table-in-word-without-clipboard-using-vbnet-2iaf</link>
      <guid>https://dev.to/oscarsun72/answer-how-to-insert-table-in-word-without-clipboard-using-vbnet-2iaf</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76908307/how-to-insert-table-in-word-without-clipboard-using-vb-net/76910308#76910308" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How to insert table in Word without clipboard using vb.net
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Aug 16 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76908307/how-to-insert-table-in-word-without-clipboard-using-vb-net/76910308#76910308" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;You can try &lt;a href="https://learn.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word.range.formattedtext?view=word-pia" rel="nofollow noreferrer"&gt;FormattedText&lt;/a&gt; &lt;a href="https://learn.microsoft.com/en-us/office/vba/api/word.range.formattedtext" rel="nofollow noreferrer"&gt;property&lt;/a&gt; instead of the clipboard method, refer to &lt;a href="https://stackoverflow.com/a/76781627/8249058"&gt;my answer here&lt;/a&gt;:&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;Rem implement without the clipboard
myDoc.Range(tbl.Cell(tbl.Rows.count, 1).Range.Start, tbl.Cell(tbl.Rows.count, 1).Range.Start).FormattedText = tbl.Rows(2).Range.FormattedText
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So, TRY THIS FIRST! give it a shot !!&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;open wTemp(readonly)
dim wTable as word.table = wTemp.tables(1) ' the table I need is&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76908307/how-to-insert-table-in-word-without-clipboard-using-vb-net/76910308#76910308" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: MSword - How to use find and replace to conduct advanced replacing</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Fri, 11 Aug 2023 16:02:17 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-msword-how-to-use-find-and-replace-to-conduct-advanced-replacing-5alh</link>
      <guid>https://dev.to/oscarsun72/answer-msword-how-to-use-find-and-replace-to-conduct-advanced-replacing-5alh</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76884842/msword-how-to-use-find-and-replace-to-conduct-advanced-replacing/76885081#76885081" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: MSword - How to use find and replace to conduct advanced replacing
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Aug 11 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76884842/msword-how-to-use-find-and-replace-to-conduct-advanced-replacing/76885081#76885081" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Is this is what you want?&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;Sub ReplaceText_MSword__How_to_use_find_and_replace_to_conduct_advanced_replacing()
    With ActiveDocument.Content.Find
        .ClearFormatting
        .Text = "p = 0.([0-9]{3})"
        .Replacement.ClearFormatting
        .Replacement.Text = "(0.\1)"
        .MatchWildcards = True
        .Execute Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue
    End With
End Sub
&lt;/code&gt;&lt;/pre&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76884842/msword-how-to-use-find-and-replace-to-conduct-advanced-replacing/76885081#76885081" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Delete "blank" lines defined by two consecutive paragraph marks</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Fri, 11 Aug 2023 04:55:32 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-delete-blank-lines-defined-by-two-consecutive-paragraph-marks-9df</link>
      <guid>https://dev.to/oscarsun72/answer-delete-blank-lines-defined-by-two-consecutive-paragraph-marks-9df</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76880665/delete-blank-lines-defined-by-two-consecutive-paragraph-marks/76880712#76880712" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Delete "blank" lines defined by two consecutive paragraph marks
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Aug 11 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76880665/delete-blank-lines-defined-by-two-consecutive-paragraph-marks/76880712#76880712" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;How many instances of MS Word (&lt;strong&gt;WINWORD.EXE&lt;/strong&gt;) are running, check it from the Task Manager( Ctrl + Shift + Esc in Windows).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Be sure &lt;code&gt;GetObject(, "Word.Application")&lt;/code&gt; returns the WINWORD.EXE IS you want to OP.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Are you sure the &lt;code&gt;ActiveDocument&lt;/code&gt; in that &lt;code&gt;objWord&lt;/code&gt; is the one which you want…&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76880665/delete-blank-lines-defined-by-two-consecutive-paragraph-marks/76880712#76880712" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: VBA word non-contiguous selection of all text instances</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Sat, 05 Aug 2023 14:57:28 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-vba-word-non-contiguous-selection-of-all-text-instances-41ej</link>
      <guid>https://dev.to/oscarsun72/answer-vba-word-non-contiguous-selection-of-all-text-instances-41ej</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76840834/vba-word-non-contiguous-selection-of-all-text-instances/76842159#76842159" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: VBA word non-contiguous selection of all text instances
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Aug  5 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76840834/vba-word-non-contiguous-selection-of-all-text-instances/76842159#76842159" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Just like &lt;em&gt;Red Hare&lt;/em&gt; said, I tried the &lt;strong&gt;&lt;a href="https://learn.microsoft.com/en-us/office/vba/api/word.find.hithighlight" rel="nofollow noreferrer"&gt;HitHighlight&lt;/a&gt;&lt;/strong&gt; method of Find object and it worked.&lt;/p&gt;
&lt;p&gt;Although this method can not really be like the Selection object or Select to be selected, it is still like the effect of the non-contiguous multi-selection. And after it runs, the range (the Parent…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76840834/vba-word-non-contiguous-selection-of-all-text-instances/76842159#76842159" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Looking for a VBA or Addin for Auto numbering text box in slides</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Fri, 28 Jul 2023 15:17:13 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-looking-for-a-vba-or-addin-for-auto-numbering-text-box-in-slides-2ini</link>
      <guid>https://dev.to/oscarsun72/answer-looking-for-a-vba-or-addin-for-auto-numbering-text-box-in-slides-2ini</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76784275/looking-for-a-vba-or-addin-for-auto-numbering-text-box-in-slides/76789078#76789078" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Looking for a VBA or Addin for Auto numbering text box in slides
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul 28 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76784275/looking-for-a-vba-or-addin-for-auto-numbering-text-box-in-slides/76789078#76789078" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;This is a simple example, the conditions is :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;all the text in your textbox is numbered by paragraph&lt;/li&gt;
&lt;li&gt;And the texts in all the slides are continuous, there is a change in the middle, or the numbering is renumbered, all of them will be updated synchronously( ie. renumber)&lt;/li&gt;
&lt;li&gt;this…&lt;/li&gt;
&lt;/ol&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76784275/looking-for-a-vba-or-addin-for-auto-numbering-text-box-in-slides/76789078#76789078" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: My VBA code does not recognize the shape it pasted in excel. However, if I run the code after not ...</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Fri, 28 Jul 2023 11:20:43 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-my-vba-code-does-not-recognize-the-shape-it-pasted-in-excel-however-if-i-run-the-code-after-not--5f9h</link>
      <guid>https://dev.to/oscarsun72/answer-my-vba-code-does-not-recognize-the-shape-it-pasted-in-excel-however-if-i-run-the-code-after-not--5f9h</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76778476/my-vba-code-does-not-recognize-the-shape-it-pasted-in-excel-however-if-i-run-t/76787283#76787283" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: My VBA code does not recognize the shape it pasted in excel. However, if I run the code after not changing anything in debug it suddenly works
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul 28 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76778476/my-vba-code-does-not-recognize-the-shape-it-pasted-in-excel-however-if-i-run-t/76787283#76787283" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Try to change these:&lt;/p&gt;
&lt;p&gt;1
&lt;code&gt;PP.CommandBars.ExecuteMso "PasteSourceFormatting" 'Paste&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;code&gt;PPSlide.Shapes.Paste&lt;/code&gt;&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;ol start="2"&gt;

&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;Set PPShape = PPSlide.Shapes(7) &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Set PPShape = PPSlide.Shapes(PPSlide.Shapes.count) &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;so like this:&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;...
        expRng.Copy 'Set range from excel
        'PP.CommandBars.ExecuteMso "PasteSourceFormatting" 'Paste
        
        Set PPSlide = PPPres.Slides(vSlide_No)
        'Set PPShape = PPSlide.Shapes(7) 'Set shape to be altered
        PPSlide.Shapes.Paste
        
        Set PPShape = PPSlide.Shapes(PPSlide.Shapes.Count)
        
        With&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76778476/my-vba-code-does-not-recognize-the-shape-it-pasted-in-excel-however-if-i-run-t/76787283#76787283" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Search a string from inbutbox in a different table with dlookup and return the value to a MsgBox</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Fri, 28 Jul 2023 10:12:59 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-search-a-string-from-inbutbox-in-a-different-table-with-dlookup-and-return-the-value-to-a-msgbox-31d8</link>
      <guid>https://dev.to/oscarsun72/answer-search-a-string-from-inbutbox-in-a-different-table-with-dlookup-and-return-the-value-to-a-msgbox-31d8</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76786740/search-a-string-from-inbutbox-in-a-different-table-with-dlookup-and-return-the-v/76786824#76786824" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Search a string from inbutbox in a different table with dlookup and return the value to a MsgBox
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul 28 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76786740/search-a-string-from-inbutbox-in-a-different-table-with-dlookup-and-return-the-v/76786824#76786824" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;How about this?&lt;/p&gt;
&lt;p&gt;You have an extra opening bracket, Both！&lt;/p&gt;
&lt;p&gt;X = &lt;code&gt;(&lt;/code&gt;DLookup("Column B", "Names", "Column A =" &amp;amp; sr) ⇒&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;X = DLookup("Column B", "Names", "Column A =""" &amp;amp; sr &amp;amp; """")
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;or use StrComp function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;X = DLookup("Column B", "Names", "strcomp(Column A,""" &amp;amp; sr &amp;amp; """)=0")
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;ps…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76786740/search-a-string-from-inbutbox-in-a-different-table-with-dlookup-and-return-the-v/76786824#76786824" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Using VBA to print current Word doc to pdf without saving or dialogs</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Fri, 28 Jul 2023 08:20:01 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-using-vba-to-print-current-word-doc-to-pdf-without-saving-or-dialogs-57i5</link>
      <guid>https://dev.to/oscarsun72/answer-using-vba-to-print-current-word-doc-to-pdf-without-saving-or-dialogs-57i5</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76784787/using-vba-to-print-current-word-doc-to-pdf-without-saving-or-dialogs/76785948#76785948" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Using VBA to print current Word doc to pdf without saving or dialogs
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul 28 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76784787/using-vba-to-print-current-word-doc-to-pdf-without-saving-or-dialogs/76785948#76785948" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;So you just want to mark the broken cross-references to check out, right?&lt;/p&gt;
&lt;p&gt;How about this:&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;Sub MarkInvalidCrossReferences()
    Dim ref
    Dim f As Field
    Dim d As Document, rng As Range
    Dim cln As New VBA.Collection, ur As UndoRecord
    Set ur = word.Application.UndoRecord
    ur.StartCustomRecord "MarkInvalidCrossReferences"
    Set d = ActiveDocument
    For&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76784787/using-vba-to-print-current-word-doc-to-pdf-without-saving-or-dialogs/76785948#76785948" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Formatting issues in generating multiple docs from a template(mail merge)</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Thu, 27 Jul 2023 16:44:27 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-formatting-issues-in-generating-multiple-docs-from-a-templatemail-merge-3102</link>
      <guid>https://dev.to/oscarsun72/answer-formatting-issues-in-generating-multiple-docs-from-a-templatemail-merge-3102</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76735433/formatting-issues-in-generating-multiple-docs-from-a-templatemail-merge/76781627#76781627" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Formatting issues in generating multiple docs from a template(mail merge)
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul 27 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76735433/formatting-issues-in-generating-multiple-docs-from-a-templatemail-merge/76781627#76781627" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Because it is too complicated, much, large; please forgive me for doing it until this line &lt;code&gt;Timer2 = Timer()&lt;/code&gt; first. You see so far, if this is satisfactory for you, I can resume later and continue.&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;Sub CreateDocuments()
    ' Define the workbook and worksheet
    Dim wb As Workbook
    Set wb&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76735433/formatting-issues-in-generating-multiple-docs-from-a-templatemail-merge/76781627#76781627" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Accessing the Value from a dropdownlist that is in a cell in a Word Table</title>
      <dc:creator>Oscar Sun（孫守真字任真）</dc:creator>
      <pubDate>Thu, 27 Jul 2023 12:59:37 +0000</pubDate>
      <link>https://dev.to/oscarsun72/answer-accessing-the-value-from-a-dropdownlist-that-is-in-a-cell-in-a-word-table-3n9o</link>
      <guid>https://dev.to/oscarsun72/answer-accessing-the-value-from-a-dropdownlist-that-is-in-a-cell-in-a-word-table-3n9o</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/76775797/accessing-the-value-from-a-dropdownlist-that-is-in-a-cell-in-a-word-table/76779917#76779917" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: Accessing the Value from a dropdownlist that is in a cell in a Word Table
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul 27 '23&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/76775797/accessing-the-value-from-a-dropdownlist-that-is-in-a-cell-in-a-word-table/76779917#76779917" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Your code has a lot of problems, as I mentioned briefly in the comments. Try to see if the code below worked for you.&lt;/p&gt;
&lt;pre class="lang-vb prettyprint-override"&gt;&lt;code&gt;Private Sub CommandButton1_Click()
    Dim SurveyData
    
    
    Dim Tb1, Tb2 As word.Table
    Dim irow, icol, i, j, Tabnum As Integer
    Dim Strng As String
    Dim RowCount, Responsevalue As&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/76775797/accessing-the-value-from-a-dropdownlist-that-is-in-a-cell-in-a-word-table/76779917#76779917" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
