a | b | |
---|
10 | 10 | | Next |
---|
11 | 11 | | End Select |
---|
12 | 12 | | End Sub |
---|
... | |
---|
13 | | - | 2 |
---|
| 13 | + | |
---|
... | |
---|
14 | 14 | | Sub RangeReplaceHyperlink(ByVal address) |
---|
15 | 15 | | sheet = ThisComponent.Sheets(address.Sheet) |
---|
... | |
---|
16 | | - | For y = address.StartRow To address.EndRow |
---|
16 | | - | For x = address.StartColumn To address.EndColumn |
---|
16 | | - | ReplaceHyperlink(sheet.getCellByPosition(x, y)) |
---|
| 16 | + | For x = address.StartColumn To address.EndColumn |
---|
| 16 | + | For y = address.StartRow To address.EndRow |
---|
| 16 | + | cell = sheet.getCellByPosition(x, y) |
---|
| 16 | + | If (cell.String = "") Then |
---|
| 16 | + | Exit For |
---|
| 16 | + | End If |
---|
| 16 | + | ReplaceHyperlink(cell) |
---|
... | |
---|
19 | 19 | | Next |
---|
20 | 20 | | Next |
---|
21 | 21 | | End Sub |
---|
22 | 22 | | |
---|
23 | 23 | | Sub ReplaceHyperlink(ByVal cell) |
---|
... | |
---|
24 | | - | If (cell.String = "") Then |
---|
24 | | - | Exit Sub |
---|
24 | | - | End If |
---|
... | |
---|
27 | 27 | | hyperlink = ThisComponent.createInstance("com.sun.star.text.TextField.URL") |
---|
28 | 28 | | hyperlink.Representation = cell.String |
---|
29 | 29 | | hyperlink.URL = cell.String |
---|
... | |
---|