+ Reply to Thread
Results 1 to 20 of 20

Problem to tranfer userform's data in a specific sheet

  1. #1
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Problem to tranfer userform's data in a specific sheet

    Hi

    I have this code

    Please Login or Register  to view this content.
    The red part of the code says :Φύλλο1. This is the translate of Sheet1 in our launquage!

    In my sample example i have also a picture of the module to see it.

    So Sheet2(Φύλλο2) is called "DataEntry" and

    Sheet1(Φύλλο1) is called "DataBase"

    The code works fine when i use sheet2-Φύλλο2, but not at all for sheet1-Φύλλο1!!

    This getting me crazy.!

    Any ideas pls?
    Attached Files Attached Files

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Problem to tranfer userform's data in a specific sheet

    Where is the code placed?

    Try
    Please Login or Register  to view this content.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Problem to tranfer userform's data in a specific sheet

    Thank you for looking on this.

    Code is for Command Button. Pls see my example sheet! I believe you'll find any info you need there.

    Your suggestion.

    Please Login or Register  to view this content.
    Unfortunately, gives me an error.

    Any ideas?

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Problem to tranfer userform's data in a specific sheet

    It gives you an error because that sheet doesn't exist. I don't have support for your language on my PC so I can't replicate exactly.

    I believe you need to use the syntax Sheets("SheetName") where sheet name is spelled exactly how you have it in your workbook.

    Or use index numbers, such as Sheets(1).

  5. #5
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Problem to tranfer userform's data in a specific sheet

    Thank you again. Playing with it i noticed that code works only in the specific sheet where the command button exist....

    So,Let's say that this can not works.

    Have you or of course anyone else how to do what i need?

    New attachment without any code there is attached!
    Attached Files Attached Files

  6. #6
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Problem to tranfer userform's data in a specific sheet

    Move the code to the workbook module instead of a sheet module.

  7. #7
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Problem to tranfer userform's data in a specific sheet

    Quote Originally Posted by Solus Rankin View Post
    Move the code to the workbook module instead of a sheet module.
    Now i am really comfused! Which code? The code of the command button? It's not in a sheet module...Did you open my attchment?

  8. #8
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Problem to tranfer userform's data in a specific sheet

    What is your ultimate goal with your code?

  9. #9
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Problem to tranfer userform's data in a specific sheet

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    I'm not sure why the Φύλλο1 reference doesn't work, I get issues with the translation also so cannot reference the sheet by the vba name.

  10. #10
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Problem to tranfer userform's data in a specific sheet

    Eatch time that i type data in the userform, then these data to be tranfered in the first available row of DataBAse sheet. The name in column B. The address in column C. The phone in column D. The zip in column M AND the Email in column P.

    The important is to transfer the data not in continues column but as i explained before(Bold part of my text)

    Thank you.

  11. #11
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Problem to tranfer userform's data in a specific sheet

    Thank you yudlugar


    Unfortunately this does't either works!!

  12. #12
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Problem to tranfer userform's data in a specific sheet

    In what way doesn't it work?

  13. #13
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Problem to tranfer userform's data in a specific sheet

    Still not exactly sure what you're trying to achieve. Perhaps:
    Please Login or Register  to view this content.

  14. #14
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Problem to tranfer userform's data in a specific sheet

    Perhaps a small video could helps you for helping me.

    http://screencast.com/t/bmEzEpdtQ7JR

  15. #15
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Problem to tranfer userform's data in a specific sheet

    I can't open the video due to the security policy at work. How did the code in #13 perform differently then expected?

  16. #16
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Problem to tranfer userform's data in a specific sheet

    Yeah I'm the same, can't watch videos.

  17. #17
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Problem to tranfer userform's data in a specific sheet

    Quys. I am geting crazy. For sure i am.

    The last code of Solus works fine making 2 modifications!! Any idea why?

    Please Login or Register  to view this content.

  18. #18
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Problem to tranfer userform's data in a specific sheet

    in what way doesn't it work without the modifications? Presumably your data in column B is different to that in column A, so you actually want the first empty row in column B to be erow, not the first empty row in column A?

  19. #19
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Problem to tranfer userform's data in a specific sheet

    Quote Originally Posted by yudlugar View Post
    so you actually want the first empty row in column B to be erow, not the first empty row in column A?
    Exactly. If you see my sample in column A i have a formula to count the entrances! Of course i have to say that is the first time that i see the "erow" way and of course.. i am not able to understand haw this works.

    I;ll study it and hope that i'll get it!

    Many thanks to both of you!

  20. #20
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Problem to tranfer userform's data in a specific sheet

    Please Login or Register  to view this content.
    Changing this to 1 shouldn't make a difference because you're setting the variable to the row number.

+ 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. [SOLVED] Vlookup in UserForm - Get Input from listbox, Lookup in specific table from specific sheet
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2013, 09:00 AM
  2. Transfer data from UserForm to Specific Sheet...
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2013, 10:26 PM
  3. Tranfer new data from one work sheet to another
    By IrinaP in forum Excel General
    Replies: 1
    Last Post: 12-04-2012, 07:06 PM
  4. tranfer data beatween three worksheets
    By ALEZI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2012, 06:46 AM
  5. problem getting data from sheet into txt_boxes in userform
    By Pierre via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2005, 05:05 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