+ Reply to Thread
Results 1 to 3 of 3

Merge similar codes into one

  1. #1
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Merge similar codes into one

    Hi everyone,

    I have the following seven codes used to fill a ListBox with data retrieved form a range (DACNRange).. they are almost the same .. the only difference between them is the range column number (highlighted with red) ..

    Instead of these seven similar codes, Can we create a general code replaces them all?


    Please Login or Register  to view this content.
    I hope that my question is clear for all,

    Thanks,
    Last edited by LoveCandle; 06-09-2009 at 05:56 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Merge similar codes into one

    How do you call each procedure/ You need to create a Public Variable to replace the column number then set it with say the button click event
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: Merge similar codes into one

    Hi,

    Thank you royUK for your advice, I actually reached the following solution:



    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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