Results 1 to 3 of 3

Thread: How to only use value from textbox if value exists

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    VBAX Regular
    Joined
    Nov 2020
    Posts
    16
    Location
    Thanks, Greg, that did the trick

    This is the finshed code:

    If Not TextBox1 = vbNullString Then
        If ThisDocument.Bookmarks.Exists("BM_Fastighetsbeteckning") = True Then
        Dim BM_Fastighetsbeteckning As Range
        Set BM_Fastighetsbeteckning = ThisDocument.Bookmarks("BM_Fastighetsbeteckning").Range
        BM_Fastighetsbeteckning.Text = Me.TextBox1.Value
        ThisDocument.Bookmarks.Add "BM_Fastighetsbeteckning", BM_Fastighetsbeteckning
        End If
        End If
    Last edited by Paul_Hossler; 12-29-2020 at 08:35 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •