LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Best Practice for Public Variables for Column Headings

For clarity...

The Enum approach addresses your issue with identifying fields.

The array approach combined with the combobox index for record ID
and/or fieldname, along with direct action with the worksheet for
add/delete is a very reliable and safe way to manage table structure.
Since the fieldnames and data table defined range names are dynamic,
they'll each adjust to reflect structural changes in the data
worksheet. Once changed, reload the array and continue working with it
until updating the table is needed next.

HTH

--
Garry

Free uenet access at http://www.eternal-september.org
Classic VB Users Regroup
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
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
Public Variables Richard Excel Programming 5 April 9th 10 11:23 AM
Public Variables Richard Excel Programming 4 July 3rd 08 02:38 PM
Public variables Tomski[_28_] Excel Programming 3 August 10th 06 03:19 PM
Public Variables [email protected] Excel Programming 1 September 1st 05 04:14 PM
Public Variables Les Gordon Excel Programming 2 November 11th 04 12:29 PM


All times are GMT +1. The time now is 05:22 PM.

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"