i am trying to create a code in VBA that takes each tab of an excel files and paste everything in another file keeping the same formatting but without formulas (only values). Is there an easy way to do this ?
Related
I've googled this and it doesn't seem possible, but I will still see if there are potential solutions/workarounds.
I am trying to create a .xlsx file (so no VBA) that will prevent the user from copying/pasting from one cell to another. Is this possible without VBA?
I'm wanting to automate a process I did on a report by copying and pasting both text and formulas from a base file to recurring new reports. I'm having trouble with this code
Workbooks("2020_05_11_14_49_06J615101_2020a.txt").Worksheets("2020_05_11_14_49_06J615101_2020").Range("AB1:AI1").Copy ThisWorkbook.ActiveSheet.Range("AB1")
This is just the text copy, after this issue is solved, I need to copy and paste the formulas
Edit 5/15/20 A .txt file can indeed be opened in excel, it just is loaded in as data when opening the program. The problem is that when automating, Excel doesn't like the above string when running the macro.
I am trying to paste several excel tables into powerpoint using Powershell:
$shape = $slide.Shapes.PasteSpecial($ppPasteJPG,$false,$null,$null,$null,$null)
It seems to work perfectly with two of the 6 excel tables I am pasting, but with the other 4 it does not. The two it works with are .xlsm, whereas the 6 are xlsx. Why is this, and how can I make it work with all of them? How can I paste the selected ranges from the xlsx files into PowerPoint such that they are formatted as they are in excel?
You can paste while keeping source formatting by using the CommandBars.ExecuteMso from either the presentation object or the application object. The command string is "PasteSourceFormatting" so after you've activated the Cell you're trying to insert the table into, run the command:
$pptApplication.CommandBars.ExecuteMso("PasteSourceFormatting");
After you've done that, use Shapes to find the newly inserted table to modify placement, size, etc.
I am creating an excel workbook file with one of the column containing a title of an image that is in another excel workbook file, that excel file contained huge database of images how to lookup images form that excel workbook file with their individual title
Note: these are two different Excel workbooks. And the condition is we can't merge file because imageDatabase file is so heavy up to 25MB for that reason excel is get not responding or force close.
file for example:
https://drive.google.com/a/flygoldfinch.com/file/d/0B9VV_J4sKTatdDBEZ01GNHg3Y0k/view?usp=docslist_api
Any reference to a cell in Excel can be performed on any other sheet, be it in the same file, or an outside file.
A reference to another sheet within the file looks like this:
='sheetname'!M20
The same thing works if that sheet is in a different file
='[file.xlsx]sheetname'!$H$726
Knowing that the reference will work that way, you can write any formula with it. This includes VLOOKUPs, or anything else you need to do.
A good shortcut to make this easier is to have both files open, click the cell you want to make the reference in, type =, then switch to the other file, click the cell you want, and hit return. Your reference is made.
I have an Excel file with 2 sheets. One with my data with headers and the other is for references. It's basically a template where I am using Sheet 2 for reference values. When I save the file to CSV, it saves all garbage data which I think are due to 2 work sheets and the references between them.
Please find the attached excel sheet and let me know how I can do a proper conversion?
Notes:
I am using Office 2010 Standard
I have tried copying and pasting with "Values" option.
I have tried copying and pasting with "Merge Destination Formatting"
Nothing worked.
I was able to find the solution.
When you copy the selected range of records and paste them to New excel file, just drag the cursor some columns ahead. Remove the newly added columns (Not sure from where they come). Now do a Save As CSV. Thats it.