In an excel workbook, called workbook A, I set up a connection to another workbook, called workbook B for one particular spreadsheet. This is because I need the worksheet in both locations, and for it to update in the background. That is all set up and working fine, however I want to keep the original formatting. Ive searched the web and tried editing the 'Data' External Data Properties, preserving the cell formatting is enabled. However the data displaying is not in correct format.
Any help would be appreciated.
Paste twice is required.
1) Paste link
2) Paste format
See link below:
http://www.excelforum.com/excel-general/500227-how-do-i-paste-links-and-keep-formats.html
Related
I've got trouble with this, I need to redirect to different workbook specific sheet. Normally, can excel redirect specific sheet on same workbook only? Is there any other option to solve it?
I look forward to solve it.
To create a formula that references a different workbook, open both workbooks then create the formula in the same fashion as referencing a different worksheet in the same workbook:
Start entering formula
Switch to the other excel window (using Alt-Tab; or windows taskbar; or View tab > Switch Windows)
Select the cells to be referenced
Switch back to original window
You should get a formula that references the other workbook like:
=[Book2.xlsx]Sheet1!$A$1
I am working on an excel spreadsheet. I have a dropdown with values. I need to add a value in there.
There is no macro and there is no connection. The only thing I found was:
I selected the cell at hand
Data -> DataValidation
In the source i can see this string =Variables!$D$1:$D$23
I do not have a sheet called variables or anything close to the word variables in any of the sheets. Where can this be coming from?
There is also protection on the workbook but not the individual sheets. Could this be the issue?
Thank you
You can usually check the contents of a hidden sheet quite easy using the Immediate Window.
So open the VBA editor (Alt-F11), go to the Immediate window (Ctrl-G), and try:
?Variables.[D17]
If this works, you can repeat this to see the other 22 validation values (or write a small sub, using Debug.Print ubstead of ?).
I've created a chart in a workbook. I want to copy and paste that chart into another workbook in such a way so that when I update the original data it automatically updates both charts.
Between Excel and Word there are no problems: I can paste the chart as link (see below):
but in Excel the same option seems to be disabled:
Any idea to solve my problem? The chart copied in the destination only updates if the original file is open, and the data changed!
Many thanks in advance.
I've not done this much, but when I have I generally just paste (i.e. Ctrl+C). The chart series should be automatically updated to refer to the source workbook, the relevant worksheet within that workbook, and keep the cell ranges the same.
So my thought would be that the option isn't disabled, it's just implicitly built in to the normal paste. Which would make sense; The use-case for keeping the same source range of cells, but on the new worksheet being pasted to (even inside the same workbook, let alone in a different workbook) is not exactly one that seems crazy useful.
I have an Excel spreadsheet with multiple worksheets in it. I have found that if I save more than one worksheet as a PDF file the formula calculation option setting changes to Manual. If I save a single worksheet as a PDF it remains at Automatic. I need it to remain Automatic as sometimes the figures in the worksheet need to be amended and recalculated.
Any advice on how to get round this?
I am trying to write an add-in for Powerpoint, the user should be able to select cells in an Excel worksheet and then go to the Powerpoint slide he would like to paste that table in, after starting the Add-in, a macro should create a table and copy cell by cell. Afterwards the macro will format the PowerPoint table according to our formatting guidelines. I am running into some issues now:
1) How can I go through the cells within a selected range in Excel, I tried to loop through the cells within the selected range, but neither this nor counting the rows/columns with in the selected range works (I am rather unfamiliar with Excel VBA)
2) What is the best way to copy data from Excel to Powerpoint? I have seen some suggestions that use a string array, that reads in all the data first; some users re-use one variable to copy the data and some do it directly from a XL to a PPT reference, what are the advantages of the different approaches?
Thanks a lot
s
For your first question, here is a snippet of code that works (yet, it depends on what you intend to do):
Dim C As Range
For Each C In Range("A1:A100")
'do stuff
Next C
For your second point, it depends on the results you expect :
a PowerPoint formatted array
an Excel Object embedded into PowerPoint
copy-paste the values inside the slide content
Once you have chosen, it's easy to find ressources on the web to do what you want.