LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Structured Table Refs in VBA

I'm confused about the relationship between tables (using structured
references) and ranges.

I can work on individual cells from a table column, similar to working with
a range, using-

Dim oSh As Worksheet
Set oSh = ActiveSheet
Dim r As Range

For Each r In oSh.Range("MyRange[ColumnName]")
r.Value = 10
Next

But if I try to create a range object from a table, using any of-

r = oSh.Range("MyRange")
r = oSh.Range("MyRange[#Data]")
r = oSh.Range("MyRange[ rowvariable, [ColumnName]]")

I think I am failing to see some basic principle here. I see lots of
reference material on how structured table refs work in the Excel UI. Can
someone point me to something simialr, or even just some working examples,
for VBA code?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Structured references between worksheets FredZack Excel Discussion (Misc queries) 0 April 28th 10 07:15 PM
VLOOKUP with Structured Reference to Table Header Julien Bouvier Excel Worksheet Functions 4 December 18th 08 11:34 PM
convert multicolumn/multirow table into two structured/formatted columns = feasible? markx Excel Programming 7 September 21st 07 06:10 PM
Extract Client Refs from pivot table into another worksheet Sarah (OGI) Excel Worksheet Functions 0 April 4th 07 01:02 PM
How do I select a value from a table based on 2 conditional refs? Puzzled Percy Excel Worksheet Functions 6 June 15th 06 04:42 AM


All times are GMT +1. The time now is 01:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"