summaryrefslogtreecommitdiffhomepage
path: root/examples/example.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-08-12 23:51:52 +0900
committerRandy Morgan <[email protected]>2012-08-12 23:51:52 +0900
commit79dc3841d4bcb2ebd43a6dae0b22a5defed081bd (patch)
treefcd8f1a09dfa324f91e8f8e603759ff05b01ffe8 /examples/example.rb
parentfd451cdb2dd1f6305d199054501dd84f716d15ce (diff)
downloadcaxlsx-79dc3841d4bcb2ebd43a6dae0b22a5defed081bd.tar.gz
caxlsx-79dc3841d4bcb2ebd43a6dae0b22a5defed081bd.zip
add in-workbook hyperlink example
Diffstat (limited to 'examples/example.rb')
-rwxr-xr-xexamples/example.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.rb b/examples/example.rb
index 23616452..71c1529e 100755
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -209,8 +209,8 @@ 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_hyperlink :location => "'Next Sheet'!A1", :ref => 'A2', :taget => :internal
sheet.add_row ['next sheet']
end