×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How do I get "ug_cell_read" to read a cell in a specific Excel Tab?

How do I get "ug_cell_read" to read a cell in a specific Excel Tab?

How do I get "ug_cell_read" to read a cell in a specific Excel Tab?

(OP)
How do I get "ug_cell_read" to read a specific cell in a specific Excel Tab? The Excel spreadsheet I am reading into an expression in NX 7.5 has several named tabs. I want "ug_cell_read" to look at a specific cell in a specific tab in my spreadsheet. What is the syntax for doing that if it can be done?

RE: How do I get "ug_cell_read" to read a cell in a specific Excel Tab?

(OP)
I should have said a specific cell on a specific sheet with Excell.

RE: How do I get "ug_cell_read" to read a cell in a specific Excel Tab?

You can reference a specific cell just like Excel does when it references between sheets... Just add the specific sheet name right before the cell reference, with an exclamation point between them.

ug_cell_read( "D:\testing\tba_test.xlsx", "Eng-Tips Rules!B2" ) 

Does that make sense?

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)

RE: How do I get "ug_cell_read" to read a cell in a specific Excel Tab?

(OP)
Thanks, Taylor Anderson! I just needed to take out the apostrophies that Excel puts in before and after the sheet name and everything worked just fine.

RE: How do I get "ug_cell_read" to read a cell in a specific Excel Tab?

Great. Glad that's working for you!

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources