4 Replies - 592 Views - Last Post: 21 August 2013 - 10:14 PM Rate Topic: -----

#1 jayasreer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-August 13

Clarification about forms button

Posted 21 August 2013 - 05:20 AM

Hi,

I am new to VB6, I want to know how to apply tag for the selected text in the paragraph.
Anyone give me the sample code for my understand.
Is This A Good Question/Topic? 0
  • +

Replies To: Clarification about forms button

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 300
  • View blog
  • Posts: 1,776
  • Joined: 26-March 09

Re: Clarification about forms button

Posted 21 August 2013 - 05:38 AM

You need to provide a little more detail on what you're trying to do.

Is this related to VB6 itself or one of the office products (VBA)?

This post has been edited by maj3091: 21 August 2013 - 05:39 AM

Was This Post Helpful? 0
  • +
  • -

#3 jayasreer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-August 13

Re: Clarification about forms button

Posted 21 August 2013 - 06:00 AM

View Postmaj3091, on 21 August 2013 - 05:38 AM, said:

You need to provide a little more detail on what you're trying to do.

Is this related to VB6 itself or one of the office products (VBA)?


Yes. Office product.
Was This Post Helpful? 0
  • +
  • -

#4 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 300
  • View blog
  • Posts: 1,776
  • Joined: 26-March 09

Re: Clarification about forms button

Posted 21 August 2013 - 07:41 AM

What have you tried so far?

Post any examples of code that you have in code tags and detail any error messages that occurred.
Was This Post Helpful? 0
  • +
  • -

#5 jayasreer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-August 13

Re: Clarification about forms button

Posted 21 August 2013 - 10:14 PM

Hi,

I want to Apply para tag for the selected lines in command button, but its not working. Let me know if any additional codes need to add.


Private Sub CommandButton1_Click()
With Selection
Selection.InsertBefore "<para>"
Selection.MoveRight wdCharacter, -1, wdExtend
Selection.InsertAfter "</para>"
End With
Selection.EndKey
Call Module1.QA
End Sub
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1