+ Reply to Thread
Results 1 to 3 of 3

User Form not updating worksheet

  1. #1
    Registered User
    Join Date
    02-14-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    14

    Question User Form not updating worksheet

    Hi
    I have created a userform and input code (I'm still very much a trainee in this) and it was happily transferring the data from the userform to the relevant worksheet until i added a column on the worksheet and a linked combo box on the userform and now it doesn't want to transfer the information from the form to the worksheet.

    I have attached a non-sensitive copy of my workbook in case i haven't explained myself very well.

    On the worksheet named OS there is a button to click to get the userform that I am talking about, and the worksheet where it is meant to be storing the data is called Datastore.

    Thanks very much in advance.
    Denise
    Attached Files Attached Files

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: User Form not updating worksheet

    Hi Denise,

    If you walk through the adddata button's click event you'll see that iRow is receiving a value of 14950-ish. There are rows of data starting around 14940, and the macro is adding all data below that.

    Delete from row 2 through row 1048000 (whatever the last row is) and it will reset to 2. If you already have data that you need, delete all empty rows then try again.
    Last edited by Paul; 04-10-2012 at 02:24 AM.

  3. #3
    Registered User
    Join Date
    02-14-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: User Form not updating worksheet

    So simple and yet I missed it even though I was looking for about an hour. Thank you very much.

+ 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