G
gschurr
I am trying to make a new name range in Exce 2004 but it fails.
I have tried many different ways but am getting to the conclusion that
it just may not work. Does anyone have some insight into this? Thanks
Here are a few example of what I've tried:
tell application "Microsoft Excel"
activate
set thisWorkbook to active workbook
set myName to "testing"
set myRange to "=$A1:$A2"
set newItem to make new named item at sheet 1 of thisWorkbook with
properties {name local:myName, value:myRange}
end tell
tell application "Microsoft Excel"
activate
set thisWorkbook to active workbook
set myName to "testing" as Unicode text
set myRange to "=$A1:$A2" as Unicode text
set newItem to make new named item at thisWorkbook with properties
{name local:myName, value:myRange}
end tell
tell application "Microsoft Excel"
activate
set thisWorkbook to active workbook
set newItem to make new named item at thisWorkbook
end tell
I have tried many different ways but am getting to the conclusion that
it just may not work. Does anyone have some insight into this? Thanks
Here are a few example of what I've tried:
tell application "Microsoft Excel"
activate
set thisWorkbook to active workbook
set myName to "testing"
set myRange to "=$A1:$A2"
set newItem to make new named item at sheet 1 of thisWorkbook with
properties {name local:myName, value:myRange}
end tell
tell application "Microsoft Excel"
activate
set thisWorkbook to active workbook
set myName to "testing" as Unicode text
set myRange to "=$A1:$A2" as Unicode text
set newItem to make new named item at thisWorkbook with properties
{name local:myName, value:myRange}
end tell
tell application "Microsoft Excel"
activate
set thisWorkbook to active workbook
set newItem to make new named item at thisWorkbook
end tell