For instance, when we'd like to copy text from notepad or something to PowerPoint for font decoration which could be used such as movie subtitle. When we find "enter" in the text, we'd like to create new text box in PowerPoint. So, the number of the text box of the ppt should be the same as the number of lines in the text file.
Ex) pls ignore when it confused you..
In notepad :
aaa bb (enter)
cc ddd ee (enter)
In ppt :
l aaa bb l
l cc ddd ee l
thank you for the responses!
Let me reply your comments.
#Steve Rindsberg, I meant earlier one i.e. ''a new text box for each line of text in the text file''.
#Tim Williams, I know some but I was not sure those are for PowerPoint or for Excel.
Related
Is there anyway to make a section of text in a report text box stand out? It can be bold, italicized, underlined, highlighted.. Anything to make it stand out more than the rest of the text in the same text box.
The text to be manipulated would be enclosed with *** on both sides.
I am on MS Access for Office 365 - 16.0.10730.20264 32bit
The code behind that button is here.
Private Sub Command20_Click()
Me.Text18.Value = Me.Text15.Value
End Sub
The Text15 is the Rich Text Box and the Text18 is plain text. When you go to set the value of the rich text box in code (Text15 in this example) you'll need to write out exactly to what you see in the right depending on what you need.
In a Word 2007 document, I manually select a sentence containing both English and Bengali words of multiple font sizes. When I enter some numeric value in the Font size list-box in the panel and press Enter, the whole sentence font size is changed (including Bengali words).
When I select the same sentence in a Word-VBA macro and in final line try
Selection.font.Size = 8
only English words' font size gets changed.
I tried to loop through each character, but I got the same result.
I need to stick to Word-VBA as it is part of a web scraping program using Chrome web-driver Selenium.
I tried a simple macro in a manually-created Word document with manually typed mixed English and Bengali words with the Vrinda (Body CS) font and the result was the same. The whole sentence is selected, but only English words' fonts get changed.
Sample Text "I am Ok You are Ok আমিও ঠিক তুমিও ঠিক Is it ok"
Word differentiates between text formatted as left-to-right (LTR) and text formatted as right-to-left (RTL). I'm not familiar with written (or spoken) Bengali, but Word apparently considers it to be RTL. In the object model (VBA) there's a separate set of Font properties for RTL - the suffix Bi is added to the property name. So
Selection.Font.Size = 8
Selection.Font.SizeBi = 8
Should take care of both languages.
I need to replace a specific string in a MS Word with text of Rich Text Box. I have achieved my that using the following code.
objDoc.Content.Find.Execute(FindText:="Comments1", _
ReplaceWith:=COMMENTS.Text, _
Replace:=Microsoft.Office.Interop.Word.WdReplace.wdReplaceAll)
But, What my actual requirement is.. I want to replace it by exact text of rich text box with alignment.
For example :
Kindly add the title to you article,
Kindly add the abstract to your article
the above text is the content of rich text box.
But, in my word document it replaced as
Kindly add the title to you article, 2. Kindly add the abstract to your article
Have you noticed that ? After the 1st point I have hit enter key and then only I have give 2nd point.
But, resultant text are concatenated with the 1st point.
So, what to do to get exact text with alignment of rich text box in my word document.
I seem to recall something about Rich Text Box using vbLf for line feeds instead of vbCrLf, which I believe is what MS Word would expect to be used for a line feed. You might try something like this (air code):
objDoc.Content.Find.Execute(FindText:="Comments1", _
ReplaceWith:=COMMENTS.Text.Replace(vbLf, vbCrLf), _
Replace:=Microsoft.Office.Interop.Word.WdReplace.wdReplaceAll)
Is there a setting in InteliJ to make it highlight usages of a word that is currently selected in plain text files similar to what Notepad and Sublime text editors do and what InteliJ does in java?
Help guide https://www.jetbrains.com/idea/help/highlighting-usages.html has Highlight usages of element at caret but that setting doesn't seem to change anything in plain text files.
To highlight all occurrences of a word in plain text, select the word and press Ctrl + F. This will open a search header filled with the selected word and all matches will be highlighted.
This is not exactly usages highlighting (since there is no real context in a plain text file), but it does what you want.
You can use Edit > Find > Highlight Usages in File Ctrl + Shift + F7.
This highlights all usages of selected text using the Find window.
I'm putting together a template in Word, using a form for the user to fill in to then populate some of the document.
The bit I'm currently stuck on is at the end of the document, where the cc's are listed.
The form has a multiline text box into which the user puts in their cc's, one per line.
I then want to add to the end of the document the contents of the text box, but in the right format. Specifically, it should look like:
cc: First CC contact
Second CC contact
so on and so forth
I attempted to do this using 2 bookmarks, so my code currently is:
' If 'CC' box has content, add it
If doc_CC.TextLength > 0 Then
.Bookmarks("CC").Range.Text = vbCr + "cc:"
.Bookmarks("CCs").Range.Paragraphs.Indent
.Bookmarks("CCs").Range.Text = doc_CC + vbCr
End If
However, when this is run, on the page it looks like:
cc: first contact
second contact
and so on
Realise that the 2 bookmark method is a bit messy but it seemed like a good idea at the time - obviously this is not the case! Have done some searching for a way to do it with Split but am not making much progress down this path - suspect I'm googling for the wrong thing.
How do I do this so that the formatting is as desired? Any help is greatly appreciated.
Try inserting a tab character? + Chr(9) or even + vbTab may work.
Have found a work around which, while doesn't answer the actual question of how to do it, does produce a result to the same effect.
Have used a 2 column table without no lines instead with contents of a1 being "cc:" and contents of a2 being whatever was entered into the multiline text box. If there is nothing in the text box, then the table is deleted.
I'll keep on eye on this question though so if some one does have the proper answer I can mark it accordingly.
Another possibility would be to format the cc paragraph with a hanging indent (like is used for bullets or numbering). Use a newline character - Chr(11) - instead of vbcr to separate each entry. The text should all line up,then...