I have an Excel spreadsheet in which I need to make hundreds of links to PDF files that are in the same folder on my computer.
The file name for the link appears in the Excel table.
Today I create each link separately, but I'm sure there is a simpler way to tell Excel to copy the link in the top box but look for the file whose name appears in the Excel table.
I'm doing each hyperlink separably
Assuming A1 has the name of the hyperlink and A2 has the location, use this formula where you want the link to appear:
=HYPERLINK(A1,A2)
You can then copy this down to the other cells.
Related
I am trying to make a button with VBA which automatically creates a screenshot of my dashboard presented in my worksheet and saves it as a separate JPG file.
I am using a Mac with Excel version 16.67.
The idea is that the button is able to do the following:
The button should select the range D4:AG175.
The file must be in JPG.
The location of the file could be in the same map as where the
Dashboard document is located (or on the Desktop, also fine).
The name of the file should be "='Filter Employee Week'!B2" + "='Filter
Employee Week'!B1" + ".jpg"
The "'Filter Employee Week'!B1 and B2" is a name selected from a slicer, which is connected to a pivot table.
So in summary:
The button takes a screenshot of the dashboard in the range D4 to AG175, it must be saved as a JPG in the same folder as the dashboard and the name should idyllically be the name of the employee selected in B2 and B1 (which are imported from a pivot table on a different sheet but presented by a connected slicer).
Can anyone help me with this code? I tried different codes from other users with problems that are comparable to this one, however, I can not get it fixed myself.
I am not able to solve this problem with the solutions presented at this question myself:
Using Excel VBA Macro To Capture + Save Screenshot of Specific Area In Same File
Save captured screenshot as JPG with vba
In an Excel cell, I want to link to a MS Word file, e.g. to C:\MyFile\someDoc.docx, using a relative path.
My Excel file is in the folder C:\MyFile. So my path should be something like currentdirectory\someDoc.docx so that I can mail the whole C:\MyFile folder or transfer it somewhere else.
How can I do that?
I am aware how to link with an absolute path like C:\MyFile\someDoc.docx but what if I transfer the Excel file to somebody. In the destination folder, will it still search for the C:\MyFile location?
You can get the location of your workbook using the CELL function.
Enter the below formula in your sheet, say in cell B1,
=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1))-1)
This will give you the root folder in which your workbook is present. Now in the cell in which you have the link to the docx file, use the below formula,
=HYPERLINK(B1&"someDoc.docx","Click here")
Hope this helps. Even if you move the folder, this will work.
I have a series of files save with names A,B,C,D. These are the items of my first row in the sheet I am working in. Now I need to refer the data from file'A' when I am working on the row that has 'A' in the first column.
I wanted to see if there is an option like VLOOKUP for different excel workbooks?
Thank you
Naga
You have to reference the file location, file name and the sheet name in order to do this.
Use the syntax in the example below;
=VLOOKUP(F3,'C:\Users\johndoe\Desktop[test1.xlsx]Sheet1'!A1:A6,1,FALSE)
Then Excel will open a file explorer box and have you select the correct file. Select it and then your formula should work.
See this link for more information:
https://support.office.com/en-us/article/Create-an-external-reference-link-to-a-cell-range-in-another-workbook-c98d1803-dd75-4668-ac6a-d7cca2a9b95f
I am working in an organization where we have 100s of excel files on our shared drive. These excel files contain asset numbers to our company assets in different cells within the files. What I would like to do is create a script in vba which would run only once and search through all these excel files using the find method and paste their cell addresses adjacent to their file path (I already have the paths of all the files in an excel sheet). But this address should in the form of a link formula, just like "=A2" so that we can later on modify this formula if there is a change in the position of the asset number without using vba. So suppose,
If cell E3 in the file1 contains asset number "XXX0000", the vba script should paste something like " ='\shared drive\folder path\file1.xlsx]WS'!$E$3 " in the cell next to the path,"\shared drive\folder\". So later on we can manually modify this formula if there is a change in its cell location
Thanks
I am generating a csv file which has the link to specific files. It looks like:
D:\abc,D:\xxx..
D:\fgt\a.txt, D:\yxz..
.
.
Now when opening this in excel I want to make these get converted into hyperlinks so that the user clicks them and the corresponding file or folder opens up.
Is there any way I can make the excel identify it as links and make them clickable links. A simple one or two steps in excel which would do this?
Thanks...
Use the HYPERLINK() worksheet function in Excel. If your generated links are in column A, insert a new column (column B) and place the following formula in cell B1:
=HYPERLINK(A1)
Then simply fill down that formula in column B.