+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : [SOLVED] Userform crashing with copied and pasted data

  1. #1
    Registered User
    Join Date
    02-26-2010
    Location
    Southend On Sea
    MS-Off Ver
    Excel 2007
    Posts
    5

    [SOLVED] Userform crashing with copied and pasted data

    Hi All,

    I'm pretty new to using Excel and VBA but have managed to create 2 workbooks with a userform attached to each. The workbooks are Quotes and Production List.

    Both have identical columns and formatting etc so once a quote has been entered onto the Quote sheet and accepted I can copy that row of information and paste it into the Production list.
    The Production list uses a Userform to produce a Job sheet. The Job sheet has 30 text boxes that are populated when the quote number is selected from a combobox.
    Now this is where the problem happens.....
    When i select the quote number of the copied data the userform crashes with an error message. Runtime error '1004': Unable to get the Vlookup property of the WorksheetFunction class.
    If I enter the exact same data into the Production List manually the Userform is quite happy to display all the data. The crash only happens with the copy & pasted data.
    The cell data is made up of stuff like customer information, phone numbers, job descriptions.

    I hope you can suggest a solution as it's driving me insane.

    Thanks in advance.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Userform crashing with copied and pasted data

    Any possibility to upload the Workbook(s)?
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform crashing with copied and pasted data

    Is the data you are using for the Vlookup a number?
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    02-26-2010
    Location
    Southend On Sea
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Userform crashing with copied and pasted data

    Yep of course. What's the best way as can't see anyway of attaching a file to a post?

  5. #5
    Registered User
    Join Date
    02-26-2010
    Location
    Southend On Sea
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Userform crashing with copied and pasted data

    The data is mixed. Most of it is words but i also need numbers for sizes and phone numbers etc.

  6. #6
    Registered User
    Join Date
    02-26-2010
    Location
    Southend On Sea
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Userform crashing with copied and pasted data

    Here's the two workbooks (i hope).

    Hope this helps.
    Attached Files Attached Files

  7. #7
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform crashing with copied and pasted data

    Try this version of your production sheet.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-26-2010
    Location
    Southend On Sea
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Userform crashing with copied and pasted data

    Quote Originally Posted by romperstomper View Post
    Try this version of your production sheet.
    Thank you so much mate, that's perfect.

+ 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