I am of the opinion that giving multiple hyperlink to a single string is not possible in MS word document. I don't have any knowledge of C# but I think after reading How insert multiple hyperlinks to one comment in MS WORD using C#? I just want to clarify weather multiple hyperlink to a single comment is possible or not.
For example I have a "string"
I want to give different hyperlinks like this
example.com/s
example.com/t
example.com/r
example.com/i
example.com/n
example.com/g
So that I get change to select where I want to go from that string.
In Word, a hyperlink is not a string, it's a field code. Field codes are special objects. It is, therefore, not possible to pass multiple hyperlink objects as part of a string. You can't even pass one hyperlink object as part of a string...
You can pass multiple hyperlink strings as a delimited string, then "split" the string into an array, loop the array to create multiple hyperlink objects.
If you want to open a hyperlink or hyperlinks from code, there is a FollowHyperlink method, as I recall (I'm on a mobile device at the moment, so can't double-check). You can pass a string to that.
Related
Now that it is possible to have multiple links within the same Google Sheets cell, I'm trying to automate some grunt work with a Mail Merge add-on. The add-on takes multiple "attachments" that are hyperlinks separated by commas and does a great job of mailing them out if I copy and paste the links in manually.
I'm using this to build individual unique emails of tests for my students so I can type in the sheets Questions A, B and Q for student 1, Questions B, C and Q for student 2. I use VLOOKUP to grab the links from a separate page that replaces Question A with the hyperlink for Question A, etc. Then I used CONCATENTATE with commas and spaces between links to build the cell that has the 3 "attachments" in it.
But it only sees the text and doesn't turn it into an active hyperlink.
If I make a copy of that CONCATENATEd text and paste as value, then go in and press the space bar after the commas, the links turn blue or "live", and then it works.
I would love to automate this. Any suggestions?
I'd be interested in automating this as well but it seems unavailable at the moment. One possible workaround (albeit a less elegant one) is to use the plain URL itself (instead of hiding it in a hyperlinked text) and separate the concatenated links by a comma or a carriage return. Gmail tends to auto-convert plain URLs into hyperlinked text. You could try a test email to yourself via the above method to ensure the concatenated URLs are converted to clickable links.
I'm currently trying to copy a list using the QUERY function in google-sheets.
The problem im now facing is that words / letters are not included in the search.
Example picture
Im using the function: "=QUERY(E2:F5;)" but don't get the words included.
Is there any way to include these words by using the formula above as guide?
In google-sheets, use Format, Number, Plain Text on your source range of E2:F5 and your original formula will work.
=QUERY(E2:F5)
From Docs Editor Help - QUERY function
In case of mixed data types in a single column, the majority data type determines the data type of the column for query purposes. Minority data types are considered null values.
I am trying to split the below data into responses for each question.
{"question_2":{"1":"5","2":"0","3":"7","4":"8","5":"9","other_comment":""},"question_3":{"1":"0","2":"11","3":"0","4":"0","5":"0","other_comment":""},"question_4":{"sub_question":{"15":"2","16":"3","17":"2"}},"question_5":{"option":"3"},"question_6":{"option":"3"}}
The moment I use Data-->Split text to columns, Spreadsheet automatically splits the data using "comma" as the separator.
But I want to use a custom separator ,"q but I am unable to apply this custom separator after the data is already split.
When you select Data|Split text into columns you should see a drop-down saying Separator:Detect automatically. If you use the up/down arrows to change Detect Automatically to Custom, you can put in any character or combination of characters you choose.
You can also use SPLIT as mentioned by I'-'I but you have to remember to put the third parameter as FALSE to specify the whole string "q and not the individual characters " and q. Use "" to get a " within a string.
=split(A1,"""q",false)
I have a survey going out with Google Forms, but to analyse the results, I would need to concatenate some cells. However, due to the nature of Google Forms, whenever a new response is recorded, a new row is added. I've read around, looking at different forums and tutorials, but can't seem to find anything that works.
Some of the places I've looked are:
concatenate column values for each row that gets added after google form submission
https://productforums.google.com/forum/#!topic/docs/0Os52U-0i1k
So what I would need help with is if it's possible to concatenate results from a Google Form without having to manually copy the formula in the cells whenever there are new responses. I've tried ArrayFormula, but I can't seem to get it to work. Any help would be much appreciated!
ArrayFormula(A2:A & B2:B) should do the trick.
Note that the formula will persist even if you put it directly at the end of the form and then add a new field.
It will just be shifted to the right, so you don't need to worry about taking care of that when you modify your form.
The CONCATENATE function is a Google spreadsheet function that combines two or more text strings into a single string. It appears in the dropdown menu for functions above cell A1, and when you select it, it places an =CONCATENATE()= formula in the selected cell.
Note that you may need to replace spaces with "&" if your text has spaces.
In order to perform this operation on Google Forms though, you will need to set up Form Embeds by making sure you have the input type of "google form embed." When embedded forms are enabled, there is no need for individual cells within a google sheet workbook with custom formulas next to each question result button as they're all being calculated.
You can find more info on CONCATENATE by referring to this.
I have a field url in schema.xml. I need to separate my search results based on this field.
For example
in one search I want results of www.example.com/part1/ actually all results that have this prefix.
for another search I want results from www.example.com, but without all documents containing /part1/ in their url.
How can I achieve this? fq doesn't accept special characters and I don't want to split content with NGramFilterFactory, so that this behaviour should be only at search-time.
The PathHierarchyTokenizerFactory should do what you need, I believe. It splits a path-type string into multiple tokens, building up from the root forwards. See https://cwiki.apache.org/confluence/display/solr/Tokenizers#Tokenizers-PathHierarchyTokenizer for more details.
You can then do a query such as q=path:www.example.com -path:*/part1, assuming that you are using the Path Hierarchy Tokenizer for both index and query analysis on that field.