+ Reply to Thread
Results 1 to 8 of 8

Couln't link up with textbox to spin button in userform

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Couln't link up with textbox to spin button in userform

    Hi,


    I can't understand that where did i make mistake. If I enter film length manually (ex: 140) , then film details adding to excel sheet but Userform showing error (Run time error: 13, type mismatch). Pls go through the Userform code in the attachment and correct me.


    Regards
    SP.Ajay Pal
    Attached Files Attached Files
    Last edited by ajaypal.sp; 09-17-2016 at 03:20 PM.

  2. #2
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Couln't link up with textbox to spin button in userform

    Please Login or Register  to view this content.
    Last edited by kalbasiatka; 09-17-2016 at 08:37 PM.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Couln't link up with textbox to spin button in userform

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Last edited by skywriter; 09-17-2016 at 03:53 PM.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  4. #4
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Re: Couln't link up with textbox to spin button in userform

    Sorry kalbasiatka,

    First, I could not understand that , where i need to paste your code. I copied your code in userform initialization. It's Not working. Same Error (run time error 13: type mismatch) showing at the below code

    Private Sub txtfilmlength_Change()
    spnfilmlength.Value = txtfilmlength.Value
    End Sub


    Pls help me.

    Thank you in advance.

    regards
    AJAY

  5. #5
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Couln't link up with textbox to spin button in userform

    Please Login or Register  to view this content.
    spnfilmlength.Value can't be empty.

  6. #6
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Re: Couln't link up with textbox to spin button in userform

    Hi, you mentioned same code which i mentioned in my last reply. spnfilmlength is the lable name of spin button. How can i assign value to spnfilmlength.value.Pls suggest

  7. #7
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Couln't link up with textbox to spin button in userform

    See post#2

  8. #8
    Registered User
    Join Date
    01-21-2015
    Location
    hyderabad
    MS-Off Ver
    2007
    Posts
    73

    Re: Couln't link up with textbox to spin button in userform

    Now code is working. 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)

Similar Threads

  1. [SOLVED] Enable Disable spin button based on a textbox
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2015, 07:21 AM
  2. spin button: create multiple cell link
    By DavidRoger in forum Excel General
    Replies: 5
    Last Post: 04-30-2014, 05:44 AM
  3. Link spin button to a different cell according to an if statement
    By depastle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2012, 02:51 PM
  4. Link keystokes to spin button? (tallying)
    By scruffy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-25-2012, 08:54 PM
  5. Spin button link to another cell
    By jnick in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-26-2012, 11:38 AM
  6. Use the spin button to change value in textbox?
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2010, 12:22 AM
  7. Spin Button will not link to cell
    By elliotl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2009, 03:10 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