+ Reply to Thread
Results 1 to 10 of 10

Cell A2 Of Worksheet Keeps Changing

  1. #1
    Forum Contributor
    Join Date
    09-26-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    182

    Question Cell A2 Of Worksheet Keeps Changing

    Hi

    I have userform to add new plant and equipment to a worksheet in another workbook. It is all working fine except that when i save to the worksheet it saves to the next available row A7, A8 andso on but also replaces Cell A2 with the same description Can anyone tell me why

    I have posted the code i am using

    Please Login or Register  to view this content.
    Last edited by Mooseman60; 11-02-2010 at 03:45 AM.

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

    Re: Cell A2 Of Worksheet Keeps Changing

    Because you told it to:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    09-26-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Cell A2 Of Worksheet Keeps Changing

    What do I need to do with the range to make it work

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

    Re: Cell A2 Of Worksheet Keeps Changing

    If you don't want A2 to change, just remove that line.

  5. #5
    Forum Contributor
    Join Date
    09-26-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    182

    Question Re: Cell A2 Of Worksheet Keeps Changing

    Are you saying to remove the whole line below

    Please Login or Register  to view this content.
    I did try this but then it comes up with Subscript not found

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

    Re: Cell A2 Of Worksheet Keeps Changing

    Yes, remove the entire line. It is impossible for the removal of that line to cause the error you mention (unless you have event code in that worksheet to close the workbook, for example)

  7. #7
    Forum Contributor
    Join Date
    09-26-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Cell A2 Of Worksheet Keeps Changing

    It is still comimng up with Subscript out of range and is highlighting this line of code below even if I delete the close button which is only closing the userform


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

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

    Re: Cell A2 Of Worksheet Keeps Changing

    Is that workbook open and does it contain a sheet called Suppliers?

  9. #9
    Forum Contributor
    Join Date
    09-26-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    182

    Re: Cell A2 Of Worksheet Keeps Changing

    Yes the workbook is open and yes it does have a worksheet called suppliers

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

    Re: Cell A2 Of Worksheet Keeps Changing

    Well, either the workbook name or the worksheet name must be wrong, or you wouldn't get that particular error.

+ 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