Excel Hyperlink mass update

前端 未结 5 1596
离开以前
离开以前 2020-12-30 01:58

I have a spreadsheet with thousands of rows. Each row contains a hyperlink with a path.

The path is not valid, however easily fixable by replacing first part of it w

5条回答
  •  没有蜡笔的小新
    2020-12-30 02:37

    Here is what I typically use for this purpose (since I was never comfortable with macros or VB scripting). This will not affect any formatting - all your graphs and charts will stay as they are.

    1. Rename the .xlsx or .xls file to .zip

    2. Unzip and edit the appropriate .xml or xml.rels file inside with any text editor of your choice

    3. Rename the .zip file back to .xlsx (or .xls)

    Thats it.

    For step 2 you can choose one of the following ways:

    1. Edit directly inside the .zip file OR

    2. Extract the .zip, then edit the file(s) outside the .zip and then replace it back into the .zip - drag and drop OR

    3. Unzip the .zip, make the edits and zip it back again using only windows explorer (Right click > Send to > Compressed (zipped) folder).

    The worksheets are typically located inside the .zip in the following path xl > worksheets. Sometimes the links are stored in the .rels files stored in xl > worksheets > rels

提交回复
热议问题