I have a Word doc in which I'm inserting links to an Excel file. For single Excel cells I can use Paste Special>Paste Link>Unformatted Text to link to just the cell contents. However, sometimes I want to link multiple cells laid out as a table in Word.
If I copy the cell range I want and then use Paste>Link & Use Destination Styles or Paste>Link & Keep Source Formatting, a line break gets inserted above the table, which I do not want but can't get rid of as it's part of the linked field. If I use the unformatted text option, I lose the basic table layout. None of the Paste Special options seem to work for this.
The only workaround I can think of is to link as unformatted text each cell in the table individually, but with sometimes hundreds of cells, that's not really an option. Help! What can I do?
(One reason I am having trouble with the line break above is that I'm trying to use Insert Caption with the tables thus linked, but when I do, the resultant caption gets incorporated into the linked field, and so when I update fields, the caption disappears since it's not in Excel... workarounds for that would help too.)
I am using Microsoft Office Professional Plus 2016.
[EDIT: Example here!]
Word doc:
Linked Excel sheet (Cells A1:C3):
If I highlight some or all of the table and Update Link, the caption disappears:
And when my cursor is at the line break above the table, the table fields highlight as that line break is somehow considered part of the linked field:
I think you just need to add a space before the line break to make sure the caption is not within the linked field. Look at difference between the two example below:
Cursor is now placed just before the line break. The values are highlighted, indicating that the linked field is selected:
Now there's a space between the cursor and the line break. The values are not highlighted, so you can safely insert a captino here:
Related
I have a table with dropdowns that will hide certain rows. To the right of this table, I want to have some content, but can't do this as it will be hidden when these dropdowns are selected. I currently have the content to the bottom right of the sheet and have tried splitting the screen to have them both showing but this does not work either. Any ideas on how I can have the two showing side by side? Thanks!
I've gotten around this by using Text Boxes. After creating the text box, change the properties to "do not move or size".
In the picture below, there are two text boxes.
-- The first one is just static text that you copy/paste in there. This works fine as long as you have the same info displayed all the time.
-- The second one has the ability to be somewhat dynamic, where it references the contents of another cell. That cell can be anywhere (this sheet, another sheet, doesn't matter). So in this example...
Cell L1 formula: =TEXTJOIN(CHAR(10), TRUE,E1:E3)
Textbox formula: =Sheet4!L1
No matter how you filter/hide, those text boxes won't move.
I have previously known an excel short-cut command that popped up an window where one could select a layout for a range of cells in the worksheet. There were many selections and several of them were quite beautiful. The layout would change the background color of the heading (first row selected), and format the first column and the cells in the body respectively.
I'm not talking about making tables or the table formatter, also it was only accessible through the shortcut command as far as I know (which I've now forgotten). Does anyone recall what I mean and could that person please share? I've been trying to remember it for some time now.
I believe what you first need to do is enable Excel to recognise your table. Take a look at my screenshot above!
By using Alt + O + A one will get up the AutoFormat window.
The Excel file I am using has cells which contains multiple lines typed in by using Alt+Enter. When this Excel is load into teradata, these multiple lines in single cell should reflect in single cell in the teradata table also. But instead, it is getting loaded as several rows. How to rectify this?
Go to Find & Replace (aka Ctrl+H). Type Ctrl+J in the Find what: text box and put a space or some alternate character in the Replace with: text box. Make sure that the Match entire cell contents is not active and click Replace All.
This effectively changes all instances of line feeds (aka CHAR(10), vbLF or ASCII 0010) into spaces. If spaces will not suit your purposes, choose another character or text string.
I am trying to create an Excel VBA that would delete only a specific part of the cell in only one column.
In Column A, I have a directory values:
For example:
Directoryof K:\data\Admin\
What I would like to do is remove the "Directoryof" from all the cells in column A and leave only the remaining text that follows it.
To create a macro to perform the above follow the below steps:
Click the "Developer" tab on the top menu.
You will find an option "Record Macro".
Click the Record Macro ->
a. A dialog box appears, give your macro a name
b. Shortcut key (if you want) can give by pressing (shift and any key such as
letters)
c. Store macro in : This workbook (this allows your macro to run on this sheet).
Click on "Use Relative References".
Once you are done, just perform the delete operation ( by removing the portion you do not want) on one of the column so that the macro may record the process which you are performing.
Once done, below at the lowest pane you will find Stop Macro option (a small blue square box). Click it to stop the recording of the macro.
Now you are ready with a macro to replicate the same without you performing the operation.
Just goto any other column where you want to perform the operation and click on "Macro" option on the developer tab and then click on your created marco, and you will see the magic happen.
You could probably use regex to accomplish what you are going for. Regular Expressions are often used for finding patterns. If all of your follows the same format, you could break your strings apart into two capture groups with something like:
(.+)([A-Z]:\\.+)
https://regex101.com/r/uD4uJ0/2 <-- this will show you your capture groups
Edit: I updated this link, sorry, originally had the wrong one.
This here How to use Regular Expressions (Regex) in Microsoft Excel both in-cell and loops will show you how to split up capture groups if you are interested.
You could use something like text to columns, fixed width, and split the columns after Directoryof and then copy/paste the values back into column A.
I'm not sure if there's a method to do this without a helper column without VBA. If you can afford to use a second column, you can also use =LEFT(Cell, # of characters) assuming that the part you want to strip off is always "Directoryof" and then copy/paste values back into column A.
I have been using MSWord 2010 to compose list of questions. These questions are organized in single MSWord document, using numbering - 1. first question, etc...
I was wondering could contents of each bullet be transffered to MSExcel cell? So if i have 20 questions, i would have cell with 20 rows, each containing one question.
I am asking this because i have 300 questions that i want to import to excel.
It's possible to copy your numbered bullets from Excel to Word and then break them up using Excel worksheet functions. However, it's real easy to just do it with the built-in Excel commands.
In Word:
Increase the width on the hanging indent on your numbered list. It will make the conversion in Excel easier to deal with.
Select your bullets and copy them.
In Excel:
"Paste Special" the copied text into Excel using the Match Destination Formatting option.
Select the cells you pasted the bullets by the number of digits in the bullets (i.e., first do 1-9, then do 10-99, etc.)
With the cells selected, choose the Text to Columns command from the Data tab on the ribbon.
Make sure that the 'Fixed Width" radio box is selected on the dialogue box that comes up, then move to the next step.
Adjust the break lines so that there are three fields: one with the number + period, another the spaces between the numbers and text, the third the text.
Moving to the next step - select the second field (the spaces) and click the "Do not import column (skip) radio button.
Click finish and the bullets are imported.
The above answer is best if you have an already established list. The best workflow I've found for this is to create a table to work in, in word. That table then copies perfectly into cells in excel, allowing you to create a structure that will pass between the tow docs seamlessly.