+ Reply to Thread
Results 1 to 3 of 3

Listbox linked to Pivot table

  1. #1
    Registered User
    Join Date
    11-19-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    43

    Listbox linked to Pivot table

    Hi all,

    I'm trying to create a simple userform that allows the user to edit product details by selecting the item within a listbox and clicking a edit button (which brings up a second userform that allows the user to edit product details).

    In my example, I have two userforms. Userform1 contains an edit button and a listbox. Userform2 is the edit product userform that will hopefully allow the user to edit the following fields: product name, price, units and required). This should appear when you click the edit button.

    My aim is to:
    1. link the listbox to the pivot table so that the user only has sight of a specific list of products depending on what category is selected in the pivot (i.e. cell L1).
    2. Give the user the ability to select the product and click the edit button so that they can change the product's details as required in userform 2.

    Apologies in advance for my lack of VBA experience in this area.
    My workbook is attached if you wish to see the layout.

    Any help or suggestions much appreciated.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-19-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    43

    Re: Listbox linked to Pivot table

    Hi,

    I have managed to pull the data into my listbox by simply setting a named range over the pivot table (didn't realise I could give a pivot table a named range - doh!).

    Just need to work out how to do the edit. Please find attached my latest my workbook.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-19-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    43

    Re: Listbox linked to Pivot table

    Hi again,

    Also dropped in the code for pulling in the product details into my edit form (userform2). Just need to work out how to write the changes back into the listbox. (latest attached).
    Attached Files Attached Files

+ 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. Pivot table remains linked to table on previous worksheet
    By shmir in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 02-04-2015, 04:46 PM
  2. Columns Outside Pivot Table But Linked to PT
    By ccbank in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-13-2012, 01:01 AM
  3. Drill Down Updates from a Pivot Table linked to a table
    By BON1985 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-21-2012, 10:18 AM
  4. VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox)
    By modjoe23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2005, 09:35 AM
  5. [SOLVED] Pivot table keeps dupping to another linked pivot table
    By Angus in forum Excel General
    Replies: 0
    Last Post: 08-08-2005, 03: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