Consulting

Results 1 to 4 of 4

Thread: Solved: Strange Excel Error

  1. #1

    Question Solved: Strange Excel Error

    I created this workbook in excel and its doing everything I wanted it to do. strange thing is happening though - the first time I save this onto a harddrive, when i exit the first time before I save, and it asks me if i want to save and I click yes, it says excel had an error adn needs to close. excel restarts adn the changes were saved. this only happens the first time that i save it. if i keep playing around with it after that I have no problem. but it happens every time i delete the old file and replace with a new copy. I tried this on a few different computers - all using excel 2003. I am attaching the file. any help would be greatly appreciated....i'm at a complete loss.....
    Last edited by tkaplan; 04-17-2009 at 01:31 PM. Reason: attached wrong file

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    I don't see anything that might be causing your problem. I did notice that you call CopyNewMember sub from your userform button. Why not put that code in the module for the button instead of having it in a standard module and calling it from the button? Not sure if that is the problem though.

    You should try to avoid selection when moving data from one sheet to another....still, that doesn't seem to be the problem...
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    VBAX Master
    Joined
    Jul 2006
    Location
    Belgium
    Posts
    1,286
    Location
    It's something with your form. You are ending it with .Hide . You better use Unload Me to remove it from memory. When using the red cross several times I could reproduce the fault. After changing it to Unload Me this problem seems to be solved.

    Charlize

  4. #4
    yay! u guys are awome. thank you so much! Charlize, that fixed it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •