Solved

Excel VBA/VB.net and Excel Tables (SQL Table data)

Posted on 2013-01-07
3
319 Views
Last Modified: 2013-01-07
Hi

I don't really use tables in Excel. Are they useful at all for viewing and updating SQL table data/
At the moment I either import SQL data or view it in a DataGridView form in Excel VB.net.
Are there any benefits of using Excel tables to do this
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Assisted Solution

by:Faustulus
Faustulus earned 250 total points
ID: 38750378
Neither do I. To my understanding tables are more in the nature named ranges. So, if you have several tables on one worksheet you can address them by their name and let each one have a cell referenced as Cells(1, 1). Each table has its own number of rows and columns and that makes it easier to add to it horizontally or vertically - a matter to addressing.
On the other hand, each cell within a table is also a cell within a worksheet. Whether you refer to it as Tables1.Cells(1, 1) or Cells(485, 15) should be a matter of personal preference. I can imagine that when you paste SQL tables to worksheets you are unlikely to place several of them on the same tab. In that case the question of using tables doesn't appear to come up at all.
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
ID: 38750690
If you have a query linked to a SQL server, you're going to end up with a table.

In terms of just viewing data, it doesn't make a lot of difference (other than you natively get autofilters in place) but if you want to add calculated fields etc, tables are very useful.

For updating, it shouldn't make any difference as Faustulus said, other than it's simple to get the extent of your data if it's in a table.
0
 

Author Closing Comment

by:murbro
ID: 38750746
thanks very much
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question