+ Reply to Thread
Results 1 to 2 of 2

Thread: Product Image configurator Help

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Product Image configurator Help

    I am an Excel novice relative to the knowledge of you guys and I really do hope you help with this. There is a modular product that has a main chassis and a range of different size panels that fit into the chassis at a range of positions. I need to be able to configure and price the product by positioning the images of the panels within a range of cells that represents the chassis. The attached workbook will, I hope, show the requirement. E.g. If I drag Panel 1 into cell R4 and a copy into O4 and U4 a list develops showing the item and price. If it was possible to assign a value to an image I think I could sort the rest, unless you know a better solution.
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: Product Image configurator Help

    Some thing like this which extracts the value from the shapes text.

    Sub PriceList()
    
        Dim rngChasis As Range
        Dim shpTemp As Shape
        Dim strCost As String
        
        Set rngChasis = Range("L2:Z5")
        
        For Each shpTemp In ActiveSheet.Shapes
            If Not Intersect(rngChasis, Range(shpTemp.TopLeftCell, shpTemp.BottomRightCell)) Is Nothing Then
                If shpTemp.Type = msoPicture Then
                    ' ignore picture
                Else
                    If Len(shpTemp.TextFrame.Characters.Text) > 0 Then
                    shpTemp.Select
                        strCost = Split(shpTemp.TextFrame.Characters.Text, vbLf)(1)
                        Debug.Print shpTemp.TopLeftCell.Address, shpTemp.Name, strCost
                    End If
                End If
            End If
        Next
        
    End Sub
    Cheers
    Andy
    www.andypope.info

+ 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.2.0