how do i create a text in my macro made of combined string variable that can be store in notepad -- http://en.bibleinfo.com/gift/ lessons gratuites de Bible en franais http://www.discoveronline.org/french May God bless you Que Dieu vous bnisse Incoming mail is certified Virus Free. Checked by AVG free edition anti-virus system (http://www.grisoft.com). ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Jesus is coming soon Jsus revient bientt Please be ready S.V.P. soyez prt see www.Bibleinfo.com voyez www.Bibleinfo.com available in 16 languages disponible en 16 langues or www.kidsbibleinfo.com ou www.kidsbibleinfo.com
Notepad is simply a utility for use in creating/editing text files. If you are wanting to store something in a text file, you can use the ..PrivateProfileString method of the the System object. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "the mailman" wrote in message news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... > how do i create a text in my macro made of combined string variable that > can be store in notepad > > -- > http://en.bibleinfo.com/gift/ > > lessons gratuites de Bible en franais > http://www.discoveronline.org/french > > May God bless you > Que Dieu vous bnisse > > > > Incoming mail is certified Virus Free. > > Checked by AVG free edition > > anti-virus system (http://www.grisoft.com). > > > > ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > Jesus is coming soon Jsus revient bientt > > Please be ready S.V.P. soyez prt > > see www.Bibleinfo.com voyez www.Bibleinfo.com > > available in 16 languages disponible en 16 langues > > or www.kidsbibleinfo.com ou www.kidsbibleinfo.com > > > >
yes i know about notepad sorry for my english but what i want to do is creating a string made of different variable results in my macro and be able to retrieve it in notepad for pasting it in an other document -- http://en.bibleinfo.com/gift/ lessons gratuites de Bible en franais http://www.discoveronline.org/french May God bless you Que Dieu vous bnisse Incoming mail is certified Virus Free. Checked by AVG free edition anti-virus system (http://www.grisoft.com). ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Jesus is coming soon Jsus revient bientt Please be ready S.V.P. soyez prt see www.Bibleinfo.com voyez www.Bibleinfo.com available in 16 languages disponible en 16 langues or www.kidsbibleinfo.com ou www.kidsbibleinfo.com "Doug Robbins - Word MVP" wrote in message news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... > Notepad is simply a utility for use in creating/editing text files. If > you are wanting to store something in a text file, you can use the > .PrivateProfileString method of the the System object. > > > -- > Hope this helps. > > Please reply to the newsgroup unless you wish to avail yourself of my > services on a paid consulting basis. > > Doug Robbins - Word MVP > > "the mailman" wrote in message > news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >> how do i create a text in my macro made of combined string variable that >> can be store in notepad >> >> -- >> http://en.bibleinfo.com/gift/ >> >> lessons gratuites de Bible en franais >> http://www.discoveronline.org/french >> >> May God bless you >> Que Dieu vous bnisse >> >> >> >> Incoming mail is certified Virus Free. >> >> Checked by AVG free edition >> >> anti-virus system (http://www.grisoft.com). >> >> >> >> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >> >> Jesus is coming soon Jsus revient bientt >> >> Please be ready S.V.P. soyez prt >> >> see www.Bibleinfo.com voyez www.Bibleinfo.com >> >> available in 16 languages disponible en 16 langues >> >> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >> >> >> >> > >
Use the PrivateProfileString method of the System object. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "the mailman" wrote in message news:ugEW5pfIGHA.1032@TK2MSFTNGP11.phx.gbl... > yes i know about notepad sorry for my english but what i want to do is > creating a string made of different variable results in my macro and be > able to retrieve it in notepad for pasting it in an other document > > -- > http://en.bibleinfo.com/gift/ > > lessons gratuites de Bible en franais > http://www.discoveronline.org/french > > May God bless you > Que Dieu vous bnisse > > > > Incoming mail is certified Virus Free. > > Checked by AVG free edition > > anti-virus system (http://www.grisoft.com). > > > > ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > Jesus is coming soon Jsus revient bientt > > Please be ready S.V.P. soyez prt > > see www.Bibleinfo.com voyez www.Bibleinfo.com > > available in 16 languages disponible en 16 langues > > or www.kidsbibleinfo.com ou www.kidsbibleinfo.com > > > > "Doug Robbins - Word MVP" wrote in message > news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... >> Notepad is simply a utility for use in creating/editing text files. If >> you are wanting to store something in a text file, you can use the >> .PrivateProfileString method of the the System object. >> >> >> -- >> Hope this helps. >> >> Please reply to the newsgroup unless you wish to avail yourself of my >> services on a paid consulting basis. >> >> Doug Robbins - Word MVP >> >> "the mailman" wrote in message >> news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >>> how do i create a text in my macro made of combined string variable that >>> can be store in notepad >>> >>> -- >>> http://en.bibleinfo.com/gift/ >>> >>> lessons gratuites de Bible en franais >>> http://www.discoveronline.org/french >>> >>> May God bless you >>> Que Dieu vous bnisse >>> >>> >>> >>> Incoming mail is certified Virus Free. >>> >>> Checked by AVG free edition >>> >>> anti-virus system (http://www.grisoft.com). >>> >>> >>> >>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>> >>> Jesus is coming soon Jsus revient bientt >>> >>> Please be ready S.V.P. soyez prt >>> >>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>> >>> available in 16 languages disponible en 16 langues >>> >>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>> >>> >>> >>> >> >> > >
here is my macro Sub titlelesson() Selection.HomeKey Unit:=wdStory Dim lesnumb As Integer lesmumb = InputBox("lesson #") Dim lesscr As Integer lesscr = InputBox("lesson screen #") Dim title As String title = "IIWTF" Dim texttoadd As String texttoadd = (title & "." & lesnumb & "." & lesscr) how can I include that last variable in my clipboard to paste it anywhere I want. Also I would like for the variable title to be able to choose between three more title but how . I have search real hard to help myself but could not succeed yet with the help files. Thanks for your help. -- http://en.bibleinfo.com/gift/ lessons gratuites de Bible en franais http://www.discoveronline.org/french May God bless you Que Dieu vous bnisse Incoming mail is certified Virus Free. Checked by AVG free edition anti-virus system (http://www.grisoft.com). ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Jesus is coming soon Jsus revient bientt Please be ready S.V.P. soyez prt see www.Bibleinfo.com voyez www.Bibleinfo.com available in 16 languages disponible en 16 langues or www.kidsbibleinfo.com ou www.kidsbibleinfo.com "Doug Robbins - Word MVP" wrote in message news:%23flgWjjIGHA.604@TK2MSFTNGP14.phx.gbl... > Use the PrivateProfileString method of the System object. > > > -- > Hope this helps. > > Please reply to the newsgroup unless you wish to avail yourself of my > services on a paid consulting basis. > > Doug Robbins - Word MVP > > "the mailman" wrote in message > news:ugEW5pfIGHA.1032@TK2MSFTNGP11.phx.gbl... >> yes i know about notepad sorry for my english but what i want to do is >> creating a string made of different variable results in my macro and be >> able to retrieve it in notepad for pasting it in an other document >> >> -- >> http://en.bibleinfo.com/gift/ >> >> lessons gratuites de Bible en franais >> http://www.discoveronline.org/french >> >> May God bless you >> Que Dieu vous bnisse >> >> >> >> Incoming mail is certified Virus Free. >> >> Checked by AVG free edition >> >> anti-virus system (http://www.grisoft.com). >> >> >> >> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >> >> Jesus is coming soon Jsus revient bientt >> >> Please be ready S.V.P. soyez prt >> >> see www.Bibleinfo.com voyez www.Bibleinfo.com >> >> available in 16 languages disponible en 16 langues >> >> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >> >> >> >> "Doug Robbins - Word MVP" wrote in message >> news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... >>> Notepad is simply a utility for use in creating/editing text files. If >>> you are wanting to store something in a text file, you can use the >>> .PrivateProfileString method of the the System object. >>> >>> >>> -- >>> Hope this helps. >>> >>> Please reply to the newsgroup unless you wish to avail yourself of my >>> services on a paid consulting basis. >>> >>> Doug Robbins - Word MVP >>> >>> "the mailman" wrote in message >>> news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >>>> how do i create a text in my macro made of combined string variable >>>> that can be store in notepad >>>> >>>> -- >>>> http://en.bibleinfo.com/gift/ >>>> >>>> lessons gratuites de Bible en franais >>>> http://www.discoveronline.org/french >>>> >>>> May God bless you >>>> Que Dieu vous bnisse >>>> >>>> >>>> >>>> Incoming mail is certified Virus Free. >>>> >>>> Checked by AVG free edition >>>> >>>> anti-virus system (http://www.grisoft.com). >>>> >>>> >>>> >>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>> >>>> Jesus is coming soon Jsus revient bientt >>>> >>>> Please be ready S.V.P. soyez prt >>>> >>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>> >>>> available in 16 languages disponible en 16 langues >>>> >>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>> >>>> >>>> >>>> >>> >>> >> >> > >
See the article "Manipulating the clipboard using VBA" at: http://www.word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "the mailman" wrote in message news:%23Dy41uTJGHA.3492@TK2MSFTNGP09.phx.gbl... > here is my macro > > Sub titlelesson() > Selection.HomeKey Unit:=wdStory > Dim lesnumb As Integer > lesmumb = InputBox("lesson #") > Dim lesscr As Integer > lesscr = InputBox("lesson screen #") > Dim title As String > title = "IIWTF" > > Dim texttoadd As String > texttoadd = (title & "." & lesnumb & "." & lesscr) > > > how can I include that last variable in my clipboard to paste it anywhere > I want. Also I would like for the variable title to be able to choose > between three more title but how . I have search real hard to help myself > but could not succeed yet with the help files. Thanks for your help. > > -- > http://en.bibleinfo.com/gift/ > > lessons gratuites de Bible en franais > http://www.discoveronline.org/french > > May God bless you > Que Dieu vous bnisse > > > > Incoming mail is certified Virus Free. > > Checked by AVG free edition > > anti-virus system (http://www.grisoft.com). > > > > ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > Jesus is coming soon Jsus revient bientt > > Please be ready S.V.P. soyez prt > > see www.Bibleinfo.com voyez www.Bibleinfo.com > > available in 16 languages disponible en 16 langues > > or www.kidsbibleinfo.com ou www.kidsbibleinfo.com > > > > "Doug Robbins - Word MVP" wrote in message > news:%23flgWjjIGHA.604@TK2MSFTNGP14.phx.gbl... >> Use the PrivateProfileString method of the System object. >> >> >> -- >> Hope this helps. >> >> Please reply to the newsgroup unless you wish to avail yourself of my >> services on a paid consulting basis. >> >> Doug Robbins - Word MVP >> >> "the mailman" wrote in message >> news:ugEW5pfIGHA.1032@TK2MSFTNGP11.phx.gbl... >>> yes i know about notepad sorry for my english but what i want to do is >>> creating a string made of different variable results in my macro and be >>> able to retrieve it in notepad for pasting it in an other document >>> >>> -- >>> http://en.bibleinfo.com/gift/ >>> >>> lessons gratuites de Bible en franais >>> http://www.discoveronline.org/french >>> >>> May God bless you >>> Que Dieu vous bnisse >>> >>> >>> >>> Incoming mail is certified Virus Free. >>> >>> Checked by AVG free edition >>> >>> anti-virus system (http://www.grisoft.com). >>> >>> >>> >>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>> >>> Jesus is coming soon Jsus revient bientt >>> >>> Please be ready S.V.P. soyez prt >>> >>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>> >>> available in 16 languages disponible en 16 langues >>> >>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>> >>> >>> >>> "Doug Robbins - Word MVP" wrote in message >>> news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... >>>> Notepad is simply a utility for use in creating/editing text files. If >>>> you are wanting to store something in a text file, you can use the >>>> .PrivateProfileString method of the the System object. >>>> >>>> >>>> -- >>>> Hope this helps. >>>> >>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>> services on a paid consulting basis. >>>> >>>> Doug Robbins - Word MVP >>>> >>>> "the mailman" wrote in message >>>> news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >>>>> how do i create a text in my macro made of combined string variable >>>>> that can be store in notepad >>>>> >>>>> -- >>>>> http://en.bibleinfo.com/gift/ >>>>> >>>>> lessons gratuites de Bible en franais >>>>> http://www.discoveronline.org/french >>>>> >>>>> May God bless you >>>>> Que Dieu vous bnisse >>>>> >>>>> >>>>> >>>>> Incoming mail is certified Virus Free. >>>>> >>>>> Checked by AVG free edition >>>>> >>>>> anti-virus system (http://www.grisoft.com). >>>>> >>>>> >>>>> >>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>> >>>>> Jesus is coming soon Jsus revient bientt >>>>> >>>>> Please be ready S.V.P. soyez prt >>>>> >>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>> >>>>> available in 16 languages disponible en 16 langues >>>>> >>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > >
I have vb 6.3 it does not work it stops as highlite Sub titlelesson() Selection.HomeKey Unit:=wdStory Dim lesnumb As Integer lesmumb = InputBox("lesson #") Dim lesscr As Integer lesscr = InputBox("lesson screen #") Dim title As String title = "IIWTF" Dim MyData As DataObject Dim strClip As String strClip = (title & "." & lesnumb & "." & lesscr) Set MyData = New DataObject MyData.SetText strClip MyData.PutInClipboard -- http://en.bibleinfo.com/gift/ lessons gratuites de Bible en franais http://www.discoveronline.org/french May God bless you Que Dieu vous bnisse Incoming mail is certified Virus Free. Checked by AVG free edition anti-virus system (http://www.grisoft.com). ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Jesus is coming soon Jsus revient bientt Please be ready S.V.P. soyez prt see www.Bibleinfo.com voyez www.Bibleinfo.com available in 16 languages disponible en 16 langues or www.kidsbibleinfo.com ou www.kidsbibleinfo.com "Doug Robbins - Word MVP" wrote in message news:urHIPnVJGHA.2040@TK2MSFTNGP14.phx.gbl... > See the article "Manipulating the clipboard using VBA" at: > > http://www.word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm > > > -- > Hope this helps. > > Please reply to the newsgroup unless you wish to avail yourself of my > services on a paid consulting basis. > > Doug Robbins - Word MVP > > "the mailman" wrote in message > news:%23Dy41uTJGHA.3492@TK2MSFTNGP09.phx.gbl... >> here is my macro >> >> Sub titlelesson() >> Selection.HomeKey Unit:=wdStory >> Dim lesnumb As Integer >> lesmumb = InputBox("lesson #") >> Dim lesscr As Integer >> lesscr = InputBox("lesson screen #") >> Dim title As String >> title = "IIWTF" >> >> Dim texttoadd As String >> texttoadd = (title & "." & lesnumb & "." & lesscr) >> >> >> how can I include that last variable in my clipboard to paste it anywhere >> I want. Also I would like for the variable title to be able to choose >> between three more title but how . I have search real hard to help myself >> but could not succeed yet with the help files. Thanks for your help. >> >> -- >> http://en.bibleinfo.com/gift/ >> >> lessons gratuites de Bible en franais >> http://www.discoveronline.org/french >> >> May God bless you >> Que Dieu vous bnisse >> >> >> >> Incoming mail is certified Virus Free. >> >> Checked by AVG free edition >> >> anti-virus system (http://www.grisoft.com). >> >> >> >> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >> >> Jesus is coming soon Jsus revient bientt >> >> Please be ready S.V.P. soyez prt >> >> see www.Bibleinfo.com voyez www.Bibleinfo.com >> >> available in 16 languages disponible en 16 langues >> >> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >> >> >> >> "Doug Robbins - Word MVP" wrote in message >> news:%23flgWjjIGHA.604@TK2MSFTNGP14.phx.gbl... >>> Use the PrivateProfileString method of the System object. >>> >>> >>> -- >>> Hope this helps. >>> >>> Please reply to the newsgroup unless you wish to avail yourself of my >>> services on a paid consulting basis. >>> >>> Doug Robbins - Word MVP >>> >>> "the mailman" wrote in message >>> news:ugEW5pfIGHA.1032@TK2MSFTNGP11.phx.gbl... >>>> yes i know about notepad sorry for my english but what i want to do is >>>> creating a string made of different variable results in my macro and be >>>> able to retrieve it in notepad for pasting it in an other document >>>> >>>> -- >>>> http://en.bibleinfo.com/gift/ >>>> >>>> lessons gratuites de Bible en franais >>>> http://www.discoveronline.org/french >>>> >>>> May God bless you >>>> Que Dieu vous bnisse >>>> >>>> >>>> >>>> Incoming mail is certified Virus Free. >>>> >>>> Checked by AVG free edition >>>> >>>> anti-virus system (http://www.grisoft.com). >>>> >>>> >>>> >>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>> >>>> Jesus is coming soon Jsus revient bientt >>>> >>>> Please be ready S.V.P. soyez prt >>>> >>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>> >>>> available in 16 languages disponible en 16 langues >>>> >>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>> >>>> >>>> >>>> "Doug Robbins - Word MVP" wrote in message >>>> news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... >>>>> Notepad is simply a utility for use in creating/editing text files. >>>>> If >>>>> you are wanting to store something in a text file, you can use the >>>>> .PrivateProfileString method of the the System object. >>>>> >>>>> >>>>> -- >>>>> Hope this helps. >>>>> >>>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>>> services on a paid consulting basis. >>>>> >>>>> Doug Robbins - Word MVP >>>>> >>>>> "the mailman" wrote in message >>>>> news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >>>>>> how do i create a text in my macro made of combined string variable >>>>>> that can be store in notepad >>>>>> >>>>>> -- >>>>>> http://en.bibleinfo.com/gift/ >>>>>> >>>>>> lessons gratuites de Bible en franais >>>>>> http://www.discoveronline.org/french >>>>>> >>>>>> May God bless you >>>>>> Que Dieu vous bnisse >>>>>> >>>>>> >>>>>> >>>>>> Incoming mail is certified Virus Free. >>>>>> >>>>>> Checked by AVG free edition >>>>>> >>>>>> anti-virus system (http://www.grisoft.com). >>>>>> >>>>>> >>>>>> >>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>> >>>>>> Jesus is coming soon Jsus revient bientt >>>>>> >>>>>> Please be ready S.V.P. soyez prt >>>>>> >>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>> >>>>>> available in 16 languages disponible en 16 langues >>>>>> >>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> >> > >
Did you set the reference to the "Microsoft Forms 2.0 Object Library" as mentioned at the bottom of the article? -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "the mailman" wrote in message news:ei3OGsZJGHA.2668@tk2msftngp13.phx.gbl... >I have vb 6.3 > it does not work it stops as highlite > Sub titlelesson() > > > > Selection.HomeKey Unit:=wdStory > > Dim lesnumb As Integer > > lesmumb = InputBox("lesson #") > > Dim lesscr As Integer > > lesscr = InputBox("lesson screen #") > > Dim title As String > > title = "IIWTF" > > Dim MyData As DataObject > > Dim strClip As String > > strClip = (title & "." & lesnumb & "." & lesscr) > > > > Set MyData = New DataObject > > > > MyData.SetText strClip > > MyData.PutInClipboard > > -- > http://en.bibleinfo.com/gift/ > > lessons gratuites de Bible en franais > http://www.discoveronline.org/french > > May God bless you > Que Dieu vous bnisse > > > > Incoming mail is certified Virus Free. > > Checked by AVG free edition > > anti-virus system (http://www.grisoft.com). > > > > ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > Jesus is coming soon Jsus revient bientt > > Please be ready S.V.P. soyez prt > > see www.Bibleinfo.com voyez www.Bibleinfo.com > > available in 16 languages disponible en 16 langues > > or www.kidsbibleinfo.com ou www.kidsbibleinfo.com > > > > "Doug Robbins - Word MVP" wrote in message > news:urHIPnVJGHA.2040@TK2MSFTNGP14.phx.gbl... >> See the article "Manipulating the clipboard using VBA" at: >> >> http://www.word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm >> >> >> -- >> Hope this helps. >> >> Please reply to the newsgroup unless you wish to avail yourself of my >> services on a paid consulting basis. >> >> Doug Robbins - Word MVP >> >> "the mailman" wrote in message >> news:%23Dy41uTJGHA.3492@TK2MSFTNGP09.phx.gbl... >>> here is my macro >>> >>> Sub titlelesson() >>> Selection.HomeKey Unit:=wdStory >>> Dim lesnumb As Integer >>> lesmumb = InputBox("lesson #") >>> Dim lesscr As Integer >>> lesscr = InputBox("lesson screen #") >>> Dim title As String >>> title = "IIWTF" >>> >>> Dim texttoadd As String >>> texttoadd = (title & "." & lesnumb & "." & lesscr) >>> >>> >>> how can I include that last variable in my clipboard to paste it >>> anywhere I want. Also I would like for the variable title to be able to >>> choose between three more title but how . I have search real hard to >>> help myself but could not succeed yet with the help files. Thanks for >>> your help. >>> >>> -- >>> http://en.bibleinfo.com/gift/ >>> >>> lessons gratuites de Bible en franais >>> http://www.discoveronline.org/french >>> >>> May God bless you >>> Que Dieu vous bnisse >>> >>> >>> >>> Incoming mail is certified Virus Free. >>> >>> Checked by AVG free edition >>> >>> anti-virus system (http://www.grisoft.com). >>> >>> >>> >>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>> >>> Jesus is coming soon Jsus revient bientt >>> >>> Please be ready S.V.P. soyez prt >>> >>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>> >>> available in 16 languages disponible en 16 langues >>> >>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>> >>> >>> >>> "Doug Robbins - Word MVP" wrote in message >>> news:%23flgWjjIGHA.604@TK2MSFTNGP14.phx.gbl... >>>> Use the PrivateProfileString method of the System object. >>>> >>>> >>>> -- >>>> Hope this helps. >>>> >>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>> services on a paid consulting basis. >>>> >>>> Doug Robbins - Word MVP >>>> >>>> "the mailman" wrote in message >>>> news:ugEW5pfIGHA.1032@TK2MSFTNGP11.phx.gbl... >>>>> yes i know about notepad sorry for my english but what i want to do is >>>>> creating a string made of different variable results in my macro and >>>>> be >>>>> able to retrieve it in notepad for pasting it in an other document >>>>> >>>>> -- >>>>> http://en.bibleinfo.com/gift/ >>>>> >>>>> lessons gratuites de Bible en franais >>>>> http://www.discoveronline.org/french >>>>> >>>>> May God bless you >>>>> Que Dieu vous bnisse >>>>> >>>>> >>>>> >>>>> Incoming mail is certified Virus Free. >>>>> >>>>> Checked by AVG free edition >>>>> >>>>> anti-virus system (http://www.grisoft.com). >>>>> >>>>> >>>>> >>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>> >>>>> Jesus is coming soon Jsus revient bientt >>>>> >>>>> Please be ready S.V.P. soyez prt >>>>> >>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>> >>>>> available in 16 languages disponible en 16 langues >>>>> >>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>> >>>>> >>>>> >>>>> "Doug Robbins - Word MVP" wrote in message >>>>> news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... >>>>>> Notepad is simply a utility for use in creating/editing text files. >>>>>> If >>>>>> you are wanting to store something in a text file, you can use the >>>>>> .PrivateProfileString method of the the System object. >>>>>> >>>>>> >>>>>> -- >>>>>> Hope this helps. >>>>>> >>>>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>>>> services on a paid consulting basis. >>>>>> >>>>>> Doug Robbins - Word MVP >>>>>> >>>>>> "the mailman" wrote in message >>>>>> news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >>>>>>> how do i create a text in my macro made of combined string variable >>>>>>> that can be store in notepad >>>>>>> >>>>>>> -- >>>>>>> http://en.bibleinfo.com/gift/ >>>>>>> >>>>>>> lessons gratuites de Bible en franais >>>>>>> http://www.discoveronline.org/french >>>>>>> >>>>>>> May God bless you >>>>>>> Que Dieu vous bnisse >>>>>>> >>>>>>> >>>>>>> >>>>>>> Incoming mail is certified Virus Free. >>>>>>> >>>>>>> Checked by AVG free edition >>>>>>> >>>>>>> anti-virus system (http://www.grisoft.com). >>>>>>> >>>>>>> >>>>>>> >>>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>>> >>>>>>> Jesus is coming soon Jsus revient bientt >>>>>>> >>>>>>> Please be ready S.V.P. soyez prt >>>>>>> >>>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>>> >>>>>>> available in 16 languages disponible en 16 langues >>>>>>> >>>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >>> >> >> > >
yes thanks it works now but my second variable "lesnumb" always gives me 0 as value and my second question about the choice between 4 differents prefixed value as for the "title" variable was not answered. Thanks so much. -- http://en.bibleinfo.com/gift/ lessons gratuites de Bible en franais http://www.discoveronline.org/french May God bless you Que Dieu vous bnisse Incoming mail is certified Virus Free. Checked by AVG free edition anti-virus system (http://www.grisoft.com). ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Jesus is coming soon Jsus revient bientt Please be ready S.V.P. soyez prt see www.Bibleinfo.com voyez www.Bibleinfo.com available in 16 languages disponible en 16 langues or www.kidsbibleinfo.com ou www.kidsbibleinfo.com "Doug Robbins - Word MVP" wrote in message news:e4nYbycJGHA.3732@TK2MSFTNGP10.phx.gbl... > Did you set the reference to the "Microsoft Forms 2.0 Object Library" as > mentioned at the bottom of the article? > > -- > Hope this helps. > > > Please reply to the newsgroup unless you wish to avail yourself of my > services on a paid consulting basis. > > Doug Robbins - Word MVP > > "the mailman" wrote in message > news:ei3OGsZJGHA.2668@tk2msftngp13.phx.gbl... >>I have vb 6.3 >> it does not work it stops as highlite >> Sub titlelesson() >> >> >> >> Selection.HomeKey Unit:=wdStory >> >> Dim lesnumb As Integer >> >> lesmumb = InputBox("lesson #") >> >> Dim lesscr As Integer >> >> lesscr = InputBox("lesson screen #") >> >> Dim title As String >> >> title = "IIWTF" >> >> Dim MyData As DataObject >> >> Dim strClip As String >> >> strClip = (title & "." & lesnumb & "." & lesscr) >> >> >> >> Set MyData = New DataObject >> >> >> >> MyData.SetText strClip >> >> MyData.PutInClipboard >> >> -- >> http://en.bibleinfo.com/gift/ >> >> lessons gratuites de Bible en franais >> http://www.discoveronline.org/french >> >> May God bless you >> Que Dieu vous bnisse >> >> >> >> Incoming mail is certified Virus Free. >> >> Checked by AVG free edition >> >> anti-virus system (http://www.grisoft.com). >> >> >> >> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >> >> Jesus is coming soon Jsus revient bientt >> >> Please be ready S.V.P. soyez prt >> >> see www.Bibleinfo.com voyez www.Bibleinfo.com >> >> available in 16 languages disponible en 16 langues >> >> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >> >> >> >> "Doug Robbins - Word MVP" wrote in message >> news:urHIPnVJGHA.2040@TK2MSFTNGP14.phx.gbl... >>> See the article "Manipulating the clipboard using VBA" at: >>> >>> http://www.word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm >>> >>> >>> -- >>> Hope this helps. >>> >>> Please reply to the newsgroup unless you wish to avail yourself of my >>> services on a paid consulting basis. >>> >>> Doug Robbins - Word MVP >>> >>> "the mailman" wrote in message >>> news:%23Dy41uTJGHA.3492@TK2MSFTNGP09.phx.gbl... >>>> here is my macro >>>> >>>> Sub titlelesson() >>>> Selection.HomeKey Unit:=wdStory >>>> Dim lesnumb As Integer >>>> lesmumb = InputBox("lesson #") >>>> Dim lesscr As Integer >>>> lesscr = InputBox("lesson screen #") >>>> Dim title As String >>>> title = "IIWTF" >>>> >>>> Dim texttoadd As String >>>> texttoadd = (title & "." & lesnumb & "." & lesscr) >>>> >>>> >>>> how can I include that last variable in my clipboard to paste it >>>> anywhere I want. Also I would like for the variable title to be able to >>>> choose between three more title but how . I have search real hard to >>>> help myself but could not succeed yet with the help files. Thanks for >>>> your help. >>>> >>>> -- >>>> http://en.bibleinfo.com/gift/ >>>> >>>> lessons gratuites de Bible en franais >>>> http://www.discoveronline.org/french >>>> >>>> May God bless you >>>> Que Dieu vous bnisse >>>> >>>> >>>> >>>> Incoming mail is certified Virus Free. >>>> >>>> Checked by AVG free edition >>>> >>>> anti-virus system (http://www.grisoft.com). >>>> >>>> >>>> >>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>> >>>> Jesus is coming soon Jsus revient bientt >>>> >>>> Please be ready S.V.P. soyez prt >>>> >>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>> >>>> available in 16 languages disponible en 16 langues >>>> >>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>> >>>> >>>> >>>> "Doug Robbins - Word MVP" wrote in message >>>> news:%23flgWjjIGHA.604@TK2MSFTNGP14.phx.gbl... >>>>> Use the PrivateProfileString method of the System object. >>>>> >>>>> >>>>> -- >>>>> Hope this helps. >>>>> >>>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>>> services on a paid consulting basis. >>>>> >>>>> Doug Robbins - Word MVP >>>>> >>>>> "the mailman" wrote in message >>>>> news:ugEW5pfIGHA.1032@TK2MSFTNGP11.phx.gbl... >>>>>> yes i know about notepad sorry for my english but what i want to do >>>>>> is >>>>>> creating a string made of different variable results in my macro and >>>>>> be >>>>>> able to retrieve it in notepad for pasting it in an other document >>>>>> >>>>>> -- >>>>>> http://en.bibleinfo.com/gift/ >>>>>> >>>>>> lessons gratuites de Bible en franais >>>>>> http://www.discoveronline.org/french >>>>>> >>>>>> May God bless you >>>>>> Que Dieu vous bnisse >>>>>> >>>>>> >>>>>> >>>>>> Incoming mail is certified Virus Free. >>>>>> >>>>>> Checked by AVG free edition >>>>>> >>>>>> anti-virus system (http://www.grisoft.com). >>>>>> >>>>>> >>>>>> >>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>> >>>>>> Jesus is coming soon Jsus revient bientt >>>>>> >>>>>> Please be ready S.V.P. soyez prt >>>>>> >>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>> >>>>>> available in 16 languages disponible en 16 langues >>>>>> >>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>> >>>>>> >>>>>> >>>>>> "Doug Robbins - Word MVP" wrote in message >>>>>> news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... >>>>>>> Notepad is simply a utility for use in creating/editing text files. >>>>>>> If >>>>>>> you are wanting to store something in a text file, you can use the >>>>>>> .PrivateProfileString method of the the System object. >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Hope this helps. >>>>>>> >>>>>>> Please reply to the newsgroup unless you wish to avail yourself of >>>>>>> my >>>>>>> services on a paid consulting basis. >>>>>>> >>>>>>> Doug Robbins - Word MVP >>>>>>> >>>>>>> "the mailman" wrote in message >>>>>>> news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >>>>>>>> how do i create a text in my macro made of combined string variable >>>>>>>> that can be store in notepad >>>>>>>> >>>>>>>> -- >>>>>>>> http://en.bibleinfo.com/gift/ >>>>>>>> >>>>>>>> lessons gratuites de Bible en franais >>>>>>>> http://www.discoveronline.org/french >>>>>>>> >>>>>>>> May God bless you >>>>>>>> Que Dieu vous bnisse >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Incoming mail is certified Virus Free. >>>>>>>> >>>>>>>> Checked by AVG free edition >>>>>>>> >>>>>>>> anti-virus system (http://www.grisoft.com). >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>>>> >>>>>>>> Jesus is coming soon Jsus revient bientt >>>>>>>> >>>>>>>> Please be ready S.V.P. soyez prt >>>>>>>> >>>>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>>>> >>>>>>>> available in 16 languages disponible en 16 langues >>>>>>>> >>>>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >> >> > >
At one point in your code you have "lesmumb" and at another you have "lesnumb". To get a choice for the title, you could use a combobox on a userform with controls for each of the other variables that you are entering See the article "How to create a Userform" at: http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "the mailman" wrote in message news:eGCj02eJGHA.1728@TK2MSFTNGP14.phx.gbl... > yes thanks it works now but my second variable "lesnumb" always gives me > 0 as value and my second question about the choice between 4 differents > prefixed value as for the "title" variable was not answered. Thanks so > much. > > -- > http://en.bibleinfo.com/gift/ > > lessons gratuites de Bible en franais > http://www.discoveronline.org/french > > May God bless you > Que Dieu vous bnisse > > > > Incoming mail is certified Virus Free. > > Checked by AVG free edition > > anti-virus system (http://www.grisoft.com). > > > > ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* > > Jesus is coming soon Jsus revient bientt > > Please be ready S.V.P. soyez prt > > see www.Bibleinfo.com voyez www.Bibleinfo.com > > available in 16 languages disponible en 16 langues > > or www.kidsbibleinfo.com ou www.kidsbibleinfo.com > > > > "Doug Robbins - Word MVP" wrote in message > news:e4nYbycJGHA.3732@TK2MSFTNGP10.phx.gbl... >> Did you set the reference to the "Microsoft Forms 2.0 Object Library" as >> mentioned at the bottom of the article? >> >> -- >> Hope this helps. >> >> >> Please reply to the newsgroup unless you wish to avail yourself of my >> services on a paid consulting basis. >> >> Doug Robbins - Word MVP >> >> "the mailman" wrote in message >> news:ei3OGsZJGHA.2668@tk2msftngp13.phx.gbl... >>>I have vb 6.3 >>> it does not work it stops as highlite >>> Sub titlelesson() >>> >>> >>> >>> Selection.HomeKey Unit:=wdStory >>> >>> Dim lesnumb As Integer >>> >>> lesmumb = InputBox("lesson #") >>> >>> Dim lesscr As Integer >>> >>> lesscr = InputBox("lesson screen #") >>> >>> Dim title As String >>> >>> title = "IIWTF" >>> >>> Dim MyData As DataObject >>> >>> Dim strClip As String >>> >>> strClip = (title & "." & lesnumb & "." & lesscr) >>> >>> >>> >>> Set MyData = New DataObject >>> >>> >>> >>> MyData.SetText strClip >>> >>> MyData.PutInClipboard >>> >>> -- >>> http://en.bibleinfo.com/gift/ >>> >>> lessons gratuites de Bible en franais >>> http://www.discoveronline.org/french >>> >>> May God bless you >>> Que Dieu vous bnisse >>> >>> >>> >>> Incoming mail is certified Virus Free. >>> >>> Checked by AVG free edition >>> >>> anti-virus system (http://www.grisoft.com). >>> >>> >>> >>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>> >>> Jesus is coming soon Jsus revient bientt >>> >>> Please be ready S.V.P. soyez prt >>> >>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>> >>> available in 16 languages disponible en 16 langues >>> >>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>> >>> >>> >>> "Doug Robbins - Word MVP" wrote in message >>> news:urHIPnVJGHA.2040@TK2MSFTNGP14.phx.gbl... >>>> See the article "Manipulating the clipboard using VBA" at: >>>> >>>> http://www.word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm >>>> >>>> >>>> -- >>>> Hope this helps. >>>> >>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>> services on a paid consulting basis. >>>> >>>> Doug Robbins - Word MVP >>>> >>>> "the mailman" wrote in message >>>> news:%23Dy41uTJGHA.3492@TK2MSFTNGP09.phx.gbl... >>>>> here is my macro >>>>> >>>>> Sub titlelesson() >>>>> Selection.HomeKey Unit:=wdStory >>>>> Dim lesnumb As Integer >>>>> lesmumb = InputBox("lesson #") >>>>> Dim lesscr As Integer >>>>> lesscr = InputBox("lesson screen #") >>>>> Dim title As String >>>>> title = "IIWTF" >>>>> >>>>> Dim texttoadd As String >>>>> texttoadd = (title & "." & lesnumb & "." & lesscr) >>>>> >>>>> >>>>> how can I include that last variable in my clipboard to paste it >>>>> anywhere I want. Also I would like for the variable title to be able >>>>> to choose between three more title but how . I have search real hard >>>>> to help myself but could not succeed yet with the help files. Thanks >>>>> for your help. >>>>> >>>>> -- >>>>> http://en.bibleinfo.com/gift/ >>>>> >>>>> lessons gratuites de Bible en franais >>>>> http://www.discoveronline.org/french >>>>> >>>>> May God bless you >>>>> Que Dieu vous bnisse >>>>> >>>>> >>>>> >>>>> Incoming mail is certified Virus Free. >>>>> >>>>> Checked by AVG free edition >>>>> >>>>> anti-virus system (http://www.grisoft.com). >>>>> >>>>> >>>>> >>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>> >>>>> Jesus is coming soon Jsus revient bientt >>>>> >>>>> Please be ready S.V.P. soyez prt >>>>> >>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>> >>>>> available in 16 languages disponible en 16 langues >>>>> >>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>> >>>>> >>>>> >>>>> "Doug Robbins - Word MVP" wrote in message >>>>> news:%23flgWjjIGHA.604@TK2MSFTNGP14.phx.gbl... >>>>>> Use the PrivateProfileString method of the System object. >>>>>> >>>>>> >>>>>> -- >>>>>> Hope this helps. >>>>>> >>>>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>>>> services on a paid consulting basis. >>>>>> >>>>>> Doug Robbins - Word MVP >>>>>> >>>>>> "the mailman" wrote in message >>>>>> news:ugEW5pfIGHA.1032@TK2MSFTNGP11.phx.gbl... >>>>>>> yes i know about notepad sorry for my english but what i want to do >>>>>>> is >>>>>>> creating a string made of different variable results in my macro and >>>>>>> be >>>>>>> able to retrieve it in notepad for pasting it in an other document >>>>>>> >>>>>>> -- >>>>>>> http://en.bibleinfo.com/gift/ >>>>>>> >>>>>>> lessons gratuites de Bible en franais >>>>>>> http://www.discoveronline.org/french >>>>>>> >>>>>>> May God bless you >>>>>>> Que Dieu vous bnisse >>>>>>> >>>>>>> >>>>>>> >>>>>>> Incoming mail is certified Virus Free. >>>>>>> >>>>>>> Checked by AVG free edition >>>>>>> >>>>>>> anti-virus system (http://www.grisoft.com). >>>>>>> >>>>>>> >>>>>>> >>>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>>> >>>>>>> Jesus is coming soon Jsus revient bientt >>>>>>> >>>>>>> Please be ready S.V.P. soyez prt >>>>>>> >>>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>>> >>>>>>> available in 16 languages disponible en 16 langues >>>>>>> >>>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> "Doug Robbins - Word MVP" wrote in message >>>>>>> news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... >>>>>>>> Notepad is simply a utility for use in creating/editing text files. >>>>>>>> If >>>>>>>> you are wanting to store something in a text file, you can use the >>>>>>>> .PrivateProfileString method of the the System object. >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Hope this helps. >>>>>>>> >>>>>>>> Please reply to the newsgroup unless you wish to avail yourself of >>>>>>>> my >>>>>>>> services on a paid consulting basis. >>>>>>>> >>>>>>>> Doug Robbins - Word MVP >>>>>>>> >>>>>>>> "the mailman" wrote in message >>>>>>>> news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >>>>>>>>> how do i create a text in my macro made of combined string >>>>>>>>> variable >>>>>>>>> that can be store in notepad >>>>>>>>> >>>>>>>>> -- >>>>>>>>> http://en.bibleinfo.com/gift/ >>>>>>>>> >>>>>>>>> lessons gratuites de Bible en franais >>>>>>>>> http://www.discoveronline.org/french >>>>>>>>> >>>>>>>>> May God bless you >>>>>>>>> Que Dieu vous bnisse >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Incoming mail is certified Virus Free. >>>>>>>>> >>>>>>>>> Checked by AVG free edition >>>>>>>>> >>>>>>>>> anti-virus system (http://www.grisoft.com). >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>>>>> >>>>>>>>> Jesus is coming soon Jsus revient bientt >>>>>>>>> >>>>>>>>> Please be ready S.V.P. soyez prt >>>>>>>>> >>>>>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>>>>> >>>>>>>>> available in 16 languages disponible en 16 langues >>>>>>>>> >>>>>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
THANKS SO MUCH -- http://en.bibleinfo.com/gift/ lessons gratuites de Bible en franais http://www.discoveronline.org/french May God bless you Que Dieu vous bnisse Incoming mail is certified Virus Free. Checked by AVG free edition anti-virus system (http://www.grisoft.com). ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Jesus is coming soon Jsus revient bientt Please be ready S.V.P. soyez prt see www.Bibleinfo.com voyez www.Bibleinfo.com available in 16 languages disponible en 16 langues or www.kidsbibleinfo.com ou www.kidsbibleinfo.com "Doug Robbins - Word MVP" wrote in message news:OElt9XiJGHA.3700@TK2MSFTNGP15.phx.gbl... > At one point in your code you have "lesmumb" and at another you have > "lesnumb". > > To get a choice for the title, you could use a combobox on a userform with > controls for each of the other variables that you are entering > > See the article "How to create a Userform" at: > > http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm > > > -- > Hope this helps. > > Please reply to the newsgroup unless you wish to avail yourself of my > services on a paid consulting basis. > > Doug Robbins - Word MVP > > "the mailman" wrote in message > news:eGCj02eJGHA.1728@TK2MSFTNGP14.phx.gbl... >> yes thanks it works now but my second variable "lesnumb" always gives me >> 0 as value and my second question about the choice between 4 differents >> prefixed value as for the "title" variable was not answered. Thanks so >> much. >> >> -- >> http://en.bibleinfo.com/gift/ >> >> lessons gratuites de Bible en franais >> http://www.discoveronline.org/french >> >> May God bless you >> Que Dieu vous bnisse >> >> >> >> Incoming mail is certified Virus Free. >> >> Checked by AVG free edition >> >> anti-virus system (http://www.grisoft.com). >> >> >> >> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >> >> Jesus is coming soon Jsus revient bientt >> >> Please be ready S.V.P. soyez prt >> >> see www.Bibleinfo.com voyez www.Bibleinfo.com >> >> available in 16 languages disponible en 16 langues >> >> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >> >> >> >> "Doug Robbins - Word MVP" wrote in message >> news:e4nYbycJGHA.3732@TK2MSFTNGP10.phx.gbl... >>> Did you set the reference to the "Microsoft Forms 2.0 Object Library" as >>> mentioned at the bottom of the article? >>> >>> -- >>> Hope this helps. >>> >>> >>> Please reply to the newsgroup unless you wish to avail yourself of my >>> services on a paid consulting basis. >>> >>> Doug Robbins - Word MVP >>> >>> "the mailman" wrote in message >>> news:ei3OGsZJGHA.2668@tk2msftngp13.phx.gbl... >>>>I have vb 6.3 >>>> it does not work it stops as highlite >>>> Sub titlelesson() >>>> >>>> >>>> >>>> Selection.HomeKey Unit:=wdStory >>>> >>>> Dim lesnumb As Integer >>>> >>>> lesmumb = InputBox("lesson #") >>>> >>>> Dim lesscr As Integer >>>> >>>> lesscr = InputBox("lesson screen #") >>>> >>>> Dim title As String >>>> >>>> title = "IIWTF" >>>> >>>> Dim MyData As DataObject >>>> >>>> Dim strClip As String >>>> >>>> strClip = (title & "." & lesnumb & "." & lesscr) >>>> >>>> >>>> >>>> Set MyData = New DataObject >>>> >>>> >>>> >>>> MyData.SetText strClip >>>> >>>> MyData.PutInClipboard >>>> >>>> -- >>>> http://en.bibleinfo.com/gift/ >>>> >>>> lessons gratuites de Bible en franais >>>> http://www.discoveronline.org/french >>>> >>>> May God bless you >>>> Que Dieu vous bnisse >>>> >>>> >>>> >>>> Incoming mail is certified Virus Free. >>>> >>>> Checked by AVG free edition >>>> >>>> anti-virus system (http://www.grisoft.com). >>>> >>>> >>>> >>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>> >>>> Jesus is coming soon Jsus revient bientt >>>> >>>> Please be ready S.V.P. soyez prt >>>> >>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>> >>>> available in 16 languages disponible en 16 langues >>>> >>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>> >>>> >>>> >>>> "Doug Robbins - Word MVP" wrote in message >>>> news:urHIPnVJGHA.2040@TK2MSFTNGP14.phx.gbl... >>>>> See the article "Manipulating the clipboard using VBA" at: >>>>> >>>>> http://www.word.mvps.org/FAQs/MacrosVBA/ManipulateClipboard.htm >>>>> >>>>> >>>>> -- >>>>> Hope this helps. >>>>> >>>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>>> services on a paid consulting basis. >>>>> >>>>> Doug Robbins - Word MVP >>>>> >>>>> "the mailman" wrote in message >>>>> news:%23Dy41uTJGHA.3492@TK2MSFTNGP09.phx.gbl... >>>>>> here is my macro >>>>>> >>>>>> Sub titlelesson() >>>>>> Selection.HomeKey Unit:=wdStory >>>>>> Dim lesnumb As Integer >>>>>> lesmumb = InputBox("lesson #") >>>>>> Dim lesscr As Integer >>>>>> lesscr = InputBox("lesson screen #") >>>>>> Dim title As String >>>>>> title = "IIWTF" >>>>>> >>>>>> Dim texttoadd As String >>>>>> texttoadd = (title & "." & lesnumb & "." & lesscr) >>>>>> >>>>>> >>>>>> how can I include that last variable in my clipboard to paste it >>>>>> anywhere I want. Also I would like for the variable title to be able >>>>>> to choose between three more title but how . I have search real hard >>>>>> to help myself but could not succeed yet with the help files. Thanks >>>>>> for your help. >>>>>> >>>>>> -- >>>>>> http://en.bibleinfo.com/gift/ >>>>>> >>>>>> lessons gratuites de Bible en franais >>>>>> http://www.discoveronline.org/french >>>>>> >>>>>> May God bless you >>>>>> Que Dieu vous bnisse >>>>>> >>>>>> >>>>>> >>>>>> Incoming mail is certified Virus Free. >>>>>> >>>>>> Checked by AVG free edition >>>>>> >>>>>> anti-virus system (http://www.grisoft.com). >>>>>> >>>>>> >>>>>> >>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>> >>>>>> Jesus is coming soon Jsus revient bientt >>>>>> >>>>>> Please be ready S.V.P. soyez prt >>>>>> >>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>> >>>>>> available in 16 languages disponible en 16 langues >>>>>> >>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>> >>>>>> >>>>>> >>>>>> "Doug Robbins - Word MVP" wrote in message >>>>>> news:%23flgWjjIGHA.604@TK2MSFTNGP14.phx.gbl... >>>>>>> Use the PrivateProfileString method of the System object. >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Hope this helps. >>>>>>> >>>>>>> Please reply to the newsgroup unless you wish to avail yourself of >>>>>>> my >>>>>>> services on a paid consulting basis. >>>>>>> >>>>>>> Doug Robbins - Word MVP >>>>>>> >>>>>>> "the mailman" wrote in message >>>>>>> news:ugEW5pfIGHA.1032@TK2MSFTNGP11.phx.gbl... >>>>>>>> yes i know about notepad sorry for my english but what i want to do >>>>>>>> is >>>>>>>> creating a string made of different variable results in my macro >>>>>>>> and be >>>>>>>> able to retrieve it in notepad for pasting it in an other document >>>>>>>> >>>>>>>> -- >>>>>>>> http://en.bibleinfo.com/gift/ >>>>>>>> >>>>>>>> lessons gratuites de Bible en franais >>>>>>>> http://www.discoveronline.org/french >>>>>>>> >>>>>>>> May God bless you >>>>>>>> Que Dieu vous bnisse >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Incoming mail is certified Virus Free. >>>>>>>> >>>>>>>> Checked by AVG free edition >>>>>>>> >>>>>>>> anti-virus system (http://www.grisoft.com). >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>>>> >>>>>>>> Jesus is coming soon Jsus revient bientt >>>>>>>> >>>>>>>> Please be ready S.V.P. soyez prt >>>>>>>> >>>>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>>>> >>>>>>>> available in 16 languages disponible en 16 langues >>>>>>>> >>>>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> "Doug Robbins - Word MVP" wrote in message >>>>>>>> news:%23JJ4G7eIGHA.1424@TK2MSFTNGP12.phx.gbl... >>>>>>>>> Notepad is simply a utility for use in creating/editing text >>>>>>>>> files. If >>>>>>>>> you are wanting to store something in a text file, you can use the >>>>>>>>> .PrivateProfileString method of the the System object. >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Hope this helps. >>>>>>>>> >>>>>>>>> Please reply to the newsgroup unless you wish to avail yourself of >>>>>>>>> my >>>>>>>>> services on a paid consulting basis. >>>>>>>>> >>>>>>>>> Doug Robbins - Word MVP >>>>>>>>> >>>>>>>>> "the mailman" wrote in message >>>>>>>>> news:e%23ZGFqcIGHA.344@TK2MSFTNGP11.phx.gbl... >>>>>>>>>> how do i create a text in my macro made of combined string >>>>>>>>>> variable >>>>>>>>>> that can be store in notepad >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> http://en.bibleinfo.com/gift/ >>>>>>>>>> >>>>>>>>>> lessons gratuites de Bible en franais >>>>>>>>>> http://www.discoveronline.org/french >>>>>>>>>> >>>>>>>>>> May God bless you >>>>>>>>>> Que Dieu vous bnisse >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Incoming mail is certified Virus Free. >>>>>>>>>> >>>>>>>>>> Checked by AVG free edition >>>>>>>>>> >>>>>>>>>> anti-virus system (http://www.grisoft.com). >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* >>>>>>>>>> >>>>>>>>>> Jesus is coming soon Jsus revient bientt >>>>>>>>>> >>>>>>>>>> Please be ready S.V.P. soyez prt >>>>>>>>>> >>>>>>>>>> see www.Bibleinfo.com voyez www.Bibleinfo.com >>>>>>>>>> >>>>>>>>>> available in 16 languages disponible en 16 langues >>>>>>>>>> >>>>>>>>>> or www.kidsbibleinfo.com ou www.kidsbibleinfo.com >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >