Results 1 to 8 of 8

Trying to copy a cell range to a different worksheet based on the selection from a ListBox

Threaded View

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    Arlington, TX
    MS-Off Ver
    Excel 2007
    Posts
    23

    Trying to copy a cell range to a different worksheet based on the selection from a ListBox

    I am new to VBA and need some direction on a problem. I have a listBox on sheet2 (Project Info). Based on the selection made in that ListBox, I want to copy a range of cells from sheet15 (Cust Specific Text) to a range of cells on sheet14 (ESD Safety Log). Here is what I have that doesn't work yet:

    Sub CustSpecificESDText()
    '
    ' CustSpecificESDText Macro
    '
    
    '
        If Sheets("Project Info").ListBox1.Value = "Sprint" Then
            Sheets("Cust Specific Text").Select
            Range("A2:E2").Select
            Selection.Copy
            Sheets("ESD Safety Log").Select
            Range("A5:E5").Select
            ActiveSheet.Paste
            End If
    End Sub
    I will add code to have it try to match each of the 4 remaining available selections from the ListBox with a nested If Then Else.
    Last edited by WarrenSmiley; 11-05-2013 at 10:27 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. deleting cell based off selection in listbox VBA
    By happyexcelperson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2013, 09:46 AM
  2. listbox selection based on underlying cell value
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-26-2013, 03:04 PM
  3. [SOLVED] Copy And Paste Row Into New Worksheet Based On User Listbox Selection
    By Wings249 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2012, 06:58 AM
  4. Copy cell range from another sheet based on drop down selection.
    By nhen.enry in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 08-09-2012, 09:24 PM
  5. Multi select Listbox Items selection based on other Listbox item selection.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 05:53 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