+ Reply to Thread
Results 1 to 3 of 3

Excel 2003 vba Add and remove from listbox shifting cells up when removed

  1. #1
    Forum Contributor
    Join Date
    04-27-2014
    Location
    england
    MS-Off Ver
    excel 2003,2016 and google sheets
    Posts
    123

    Excel 2003 vba Add and remove from listbox shifting cells up when removed

    Hey all please help, what i want to do is be able to select a value in the listbox, press remove and it removes that value from the sheet and shifts the cells up so there is no blank spaces. i have attached a sample sheet. thanks
    Attached Files Attached Files

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

    Re: Excel 2003 vba Add and remove from listbox shifting cells up when removed

    Try this...

    Please Login or Register  to view this content.
    The .ListIndex is the Item number of the selected item in the listbox. The Item number starts at Zero for the first Item. Your RowSource for a Listbox starts at row 2. Add two to the listindex number and that is the row number of the selected item.
    Last edited by AlphaFrog; 06-05-2017 at 08:58 AM.
    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
    Forum Contributor
    Join Date
    04-27-2014
    Location
    england
    MS-Off Ver
    excel 2003,2016 and google sheets
    Posts
    123

    Re: Excel 2003 vba Add and remove from listbox shifting cells up when removed

    Ah ok I see thanks allot that did the trick.

+ 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. Remove duplicates but consolidate data from removed
    By LHerndon in forum Excel General
    Replies: 3
    Last Post: 01-06-2017, 01:11 PM
  2. Replies: 0
    Last Post: 08-17-2014, 10:00 AM
  3. [SOLVED] MS Excel 2010 - Shifting Cells Permanently
    By persais in forum Excel General
    Replies: 5
    Last Post: 05-03-2013, 05:35 PM
  4. Replies: 8
    Last Post: 08-13-2012, 04:04 PM
  5. Shifting online data comes to excel to be shifted to adjacent cells as per formula
    By cramatr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2007, 08:30 PM
  6. help with a vba listbox in excel 2003
    By bsoltan in forum Excel General
    Replies: 0
    Last Post: 04-12-2005, 06:01 AM
  7. [SOLVED] Excel 2003 / Send To / Mail Recipient / body text is removed
    By jmaynard2 in forum Excel General
    Replies: 1
    Last Post: 03-15-2005, 11:06 PM

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