Results 1 to 12 of 12

Thread: Solved: Tags or Names

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Solved: Tags or Names

    I have read some discussion threads advocating “Names” and other threads advocating “Tags”.

    Does anyone have an opinion whether one approach has any significant advantage(s) over the other?

    Are there specific scenarios which would tend to dictate the use of one approach over the other?


    Name Examples:
    -----------------------
    ActivePresentation.Slides(1).Name = "CBRSlide1"
    For i = 1 To 9
        tickName = "tickline" & I
        ActivePresentation.Slides(x).Shapes(tickName).Delete
            Next i

    Tag Name Examples:
    --------------------
    Sub AssignTagValue()
     Dim strTagValue As String
     Dim strTagExists As String
     strTagValue = frmCBR.txtTag.Text
    ActivePresentation.Slides(1).Tags.Add "CustomerName", strTagValue
    strTabExists = ActivePresentation.Slides(1).Tags("CustomerName")
    End Sub
    ActivePresentation.Slides(4).Tags.Add Name:="IncludeIn", Value:= "ABD" 
    
    strTabExists = ActivePresentation.Slides(1).Tags("CustomerName")
    Thanks for any pearls of wisdom ...
    Last edited by Aussiebear; 04-28-2023 at 02:18 AM. Reason: Adjusted the code tags

Posting Permissions

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