+ Reply to Thread
Results 1 to 3 of 3

auto read column list every time form opens

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    auto read column list every time form opens

    hi,

    everytime i open my form i read the column list with the below code, to be displayed on the combobox on the form

    ComboBox1.List = Sheets("DATA").Range("A2:A309").Value

    my problem is if i add a data to the list in column A, i have to edit the above code again

    how do i edit the code so that it reads the list from A2 up to the last row that has data in column A everytime i open the form?

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: auto read column list every time form opens

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: auto read column list every time form opens

    thanks, works great

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Workbook opens as Read-Only
    By PacoTaco in forum Excel General
    Replies: 9
    Last Post: 09-11-2014, 02:49 AM
  2. Code won't run when Excel re opens as Read-Only
    By blaze77 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2012, 05:39 PM
  3. Replies: 1
    Last Post: 03-13-2012, 03:19 PM
  4. Read data from long list 3 rows at a time
    By Roger_the_Dodger_55 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2011, 08:26 AM
  5. Password opens as read only?
    By jjacob in forum Excel General
    Replies: 1
    Last Post: 03-06-2006, 07:40 PM
  6. Read only file opens
    By Bobby in forum Excel General
    Replies: 0
    Last Post: 01-30-2006, 10:35 AM
  7. Excel opens as read only from IE
    By Darren in forum Excel General
    Replies: 0
    Last Post: 10-13-2005, 05:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1