summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-08-11 17:35:45 +0900
committerRandy Morgan <[email protected]>2012-08-11 17:35:45 +0900
commit32eb809ac8e3b401e2cc2567d99779536a21eb22 (patch)
tree7f8d9942b1e9bc0d4809f076e6bf48a9953cb993 /examples
parent5f906a394bdb3424ba2b538a50ad2e4aeb04c3a1 (diff)
downloadcaxlsx-32eb809ac8e3b401e2cc2567d99779536a21eb22.tar.gz
caxlsx-32eb809ac8e3b401e2cc2567d99779536a21eb22.zip
update hyperlinks example to show both internal and external hyperlink examples
Diffstat (limited to 'examples')
-rw-r--r--examples/hyperlinks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hyperlinks.rb b/examples/hyperlinks.rb
index d4d332ee..9519f154 100644
--- a/examples/hyperlinks.rb
+++ b/examples/hyperlinks.rb
@@ -11,9 +11,9 @@ wb.add_worksheet(:name => 'hyperlinks') do |sheet|
# external references
sheet.add_row ['axlsx']
sheet.add_hyperlink :location => 'https://github.com/randym/axlsx', :ref => sheet.rows.first.cells.first
-
# internal references
sheet.add_row ['next sheet']
+ sheet.add_hyperlink :location => "'Next Sheet'!A1", :target => :sheet, :ref => 'A2'
end
wb.add_worksheet(:name => 'Next Sheet') do |sheet|