+ Reply to Thread
Results 1 to 10 of 10

commandbutton sends data to top of sheet instead of 4th row

  1. #1
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    commandbutton sends data to top of sheet instead of 4th row

    hi
    just trying to tidy this up and noticed the top line in sheet1 has an entry that should not be there have looked through frmissued and can not see why this is
    can some one help clean it up please
    cheers colin
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: commandbutton sends data to top of sheet instead of 4th row

    Colin

    What are you trying to tidy up?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: commandbutton sends data to top of sheet instead of 4th row

    hi norie
    taking some of the modules not used and extra commandbuttons not used,its just this writing to sheet1 has got me baffled
    cheers colin

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: commandbutton sends data to top of sheet instead of 4th row

    Colin

    Have you tried compiling the code, Debug>Compile?

    That's what I usually a good start when trying to get rid of unused code.

    As for the writing to sheet1, which of the 20+ forms should we be looking at?

  5. #5
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: commandbutton sends data to top of sheet instead of 4th row

    hi norie
    firstly its form issued / cmbadd_click that sends data to sheet3 and to sheet1 the one with the problem ,have not tried debug>compile but will give it a go now thanks
    cheers colin

  6. #6
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: commandbutton sends data to top of sheet instead of 4th row

    hi norie
    have compiled all seems well apart from frmissued textbox 70 sending to wrong row on sheet1,any ideas please
    cheers colin

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: commandbutton sends data to top of sheet instead of 4th row

    Colin

    In the code for that userform there are about 17 places you put the value from TextBox70 onto a worksheet.

    Again, which one should we be looking at?

  8. #8
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: commandbutton sends data to top of sheet instead of 4th row

    hi norie
    this is the code for commandbutton 3 which sends to sheet1, the commandbutton is one of 10 on frmissued ,they all send to sheet1 it seems if I could stop this one sending to the header rows I could adjust the others with same code ,
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    have included sheet1 it actually shows (this one norie) that is what I wrote in textbox70 and used combobox1 to send,it shows on top header and half way down sheet1 were it should be,bit confused why it would be 2 places
    cheers colin

  9. #9
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: commandbutton sends data to top of sheet instead of 4th row

    hi norie
    what is puzzling is
    Please Login or Register  to view this content.
    company name is sent to same sheet1 but does not go in header as textbox70 and issued to weird or what
    cheers colin

  10. #10
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: commandbutton sends data to top of sheet instead of 4th row

    hi norie
    I think ive sorted the problem textbox70 is sent to sheet1, 10 times if you use all comboboxes ,have amended code for only the first commandbutton3 to
    send it and it works fine,like that, as probably you only use this textbox once, just can not understand why it was putting it in top header aswell as in proper place
    cheers colin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 11-20-2012, 06:39 AM
  2. option button sends information to the sheet when the names match
    By Quicksnot in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 02:44 PM
  3. Commandbutton in userform to execute code based on a previous commandbutton choice?
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2012, 03:28 PM
  4. Replies: 2
    Last Post: 09-06-2011, 09:22 AM
  5. Text in sheet sends value to other sheet
    By Johneb3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2011, 09:58 PM

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