Click here to Skip to main content
16,016,580 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: What is Mock Version? Pin
T M Gray21-Oct-10 4:39
T M Gray21-Oct-10 4:39 
QuestionProgramming Problem Pin
rksreadero19-Oct-10 17:11
rksreadero19-Oct-10 17:11 
AnswerRe: Programming Problem Pin
Abhinav S19-Oct-10 22:20
Abhinav S19-Oct-10 22:20 
AnswerRe: Programming Problem Pin
DaveyM6919-Oct-10 22:20
professionalDaveyM6919-Oct-10 22:20 
AnswerRe: Programming Problem Pin
Pete O'Hanlon19-Oct-10 23:43
mvePete O'Hanlon19-Oct-10 23:43 
QuestionRSS reader code problem. Pin
rksreadero19-Oct-10 16:38
rksreadero19-Oct-10 16:38 
QuestionWord c# interop bookmark issue(s) Pin
jboyd11119-Oct-10 9:53
jboyd11119-Oct-10 9:53 
AnswerRe: Word c# interop bookmark issue(s) Pin
Maciej Los19-Oct-10 10:30
mveMaciej Los19-Oct-10 10:30 
If you create Word application object, uou can use
Selection.Range

to tell the application: "use current selection" or you should create range object in context:
Sub cxzcxz()
Dim doc As Word.Document
Dim rng As Word.range

Set doc = Documents(1)
Set rng = doc.Paragraphs(1).range

End Sub


How to create bookmark using VBA (Word application)?
Sub test()
Dim oBkm As Word.Bookmark
    Set oBkm = AddBookmark("Bookmark1", Selection.Range)
    MsgBox oBkm.Name, vbInformation, "Message"
End Sub

Function AddBookmark(ByVal sName As String, ByRef oRange As Word.Range) As Word.Bookmark
    Set AddBookmark = oRange.Bookmarks.Add(sName, oRange)
End Function

sorry, for my language
I'm still learning

QuestionLearning Entity Framework [modified] Pin
Luca Leonardo Scorcia18-Oct-10 9:30
professionalLuca Leonardo Scorcia18-Oct-10 9:30 
QuestionWill GetStream method always return same stream ? [modified] Pin
rahul.kulshreshtha15-Oct-10 21:25
rahul.kulshreshtha15-Oct-10 21:25 
AnswerRe: Will GetStream method always return same stream ? Pin
rahul.kulshreshtha16-Oct-10 0:57
rahul.kulshreshtha16-Oct-10 0:57 
QuestionTyped DataSet Grid View Pin
ganesh_IT14-Oct-10 23:10
ganesh_IT14-Oct-10 23:10 
AnswerRe: Typed DataSet Grid View Pin
Abhinav S15-Oct-10 3:24
Abhinav S15-Oct-10 3:24 
QuestionAdd New Row dynamically to Gridview Pin
SatyaKeerthi1514-Oct-10 22:51
SatyaKeerthi1514-Oct-10 22:51 
AnswerRe: Add New Row dynamically to Gridview Pin
Ravi Mori14-Oct-10 23:00
Ravi Mori14-Oct-10 23:00 
GeneralRe: Add New Row dynamically to Gridview Pin
SatyaKeerthi1515-Oct-10 0:07
SatyaKeerthi1515-Oct-10 0:07 
GeneralRe: Add New Row dynamically to Gridview Pin
Ravi Mori15-Oct-10 0:27
Ravi Mori15-Oct-10 0:27 
QuestionRetrive Data from Data Source Pin
ganesh_IT14-Oct-10 20:07
ganesh_IT14-Oct-10 20:07 
AnswerRe: Retrive Data from Data Source Pin
Ravi Mori14-Oct-10 20:54
Ravi Mori14-Oct-10 20:54 
Question.NET Framework Spell Checker Pin
MWRivera14-Oct-10 9:45
MWRivera14-Oct-10 9:45 
AnswerRe: .NET Framework Spell Checker Pin
Luc Pattyn14-Oct-10 10:04
sitebuilderLuc Pattyn14-Oct-10 10:04 
GeneralRe: .NET Framework Spell Checker Pin
MWRivera14-Oct-10 10:13
MWRivera14-Oct-10 10:13 
GeneralRe: .NET Framework Spell Checker Pin
Luc Pattyn14-Oct-10 10:31
sitebuilderLuc Pattyn14-Oct-10 10:31 
GeneralRe: .NET Framework Spell Checker Pin
MWRivera14-Oct-10 10:33
MWRivera14-Oct-10 10:33 
AnswerRe: .NET Framework Spell Checker Pin
Pete O'Hanlon14-Oct-10 10:07
mvePete O'Hanlon14-Oct-10 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.