+ Reply to Thread
Results 1 to 8 of 8

Anyone can shrink this code?

  1. #1
    Registered User
    Join Date
    10-11-2011
    Location
    Riyadh Saudi Arabia
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    19

    Anyone can shrink this code?

    ok this code is placed inside module1.inptdata

    Range("b2").Value = frmquote.txtdate.Value
    Range("b3").Value = frmquote.txtquote.Value
    Range("b4").Value = frmquote.txtsalesman.Value
    Range("b5").Value = frmquote.txtdterequired.Value
    Range("b8").Value = frmquote.txtCompName.Value
    Range("b9").Value = frmquote.txtadd1.Value
    Range("b10").Value = frmquote.cmbo1.Value

    frmquote.txtdate.enable = false
    frmquote.txtquote.enable = false
    frmquote.txtsalesman.enable = false
    frmquote.txtdterequired.enable = false
    frmquote.txtCompName.enable = false
    frmquote.txtadd1.enable = false
    frmquote.cmbo1.enable = false

    can you please give me idea how to do it. because this will work after clicking the command button. so all the data that has encoded in various textbox will go to each specific cell destination. can you show how to do it or atleast how to construct it.

    thanks alot

    fucell

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Anyone can shrink this code?

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,006

    Re: Anyone can shrink this code?

    Also, I'm afraid:

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved 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-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this, then please edit your post to include links to any and all crossposts in other forums.
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    10-11-2011
    Location
    Riyadh Saudi Arabia
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    19

    Re: Anyone can shrink this code?

    Quote Originally Posted by romperstomper View Post
    Also, I'm afraid:

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved 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-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this, then please edit your post to include links to any and all crossposts in other forums.
    im sorry. you can delete this post. anyway thank you so much!

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Anyone can shrink this code?

    Why delete it or don't you intend following the rules?

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Anyone can shrink this code?

    fucell,

    this is not how it works. Post the links to all the sites where you posted the same question. Read the link romperstomper posted if you need help understanding why we ask this.

    When you ask a question, you DO have some responsibilities with regards to (n)etiquette. We're not here to clean up after you.

  7. #7
    Registered User
    Join Date
    10-11-2011
    Location
    Riyadh Saudi Arabia
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    19

    Re: Anyone can shrink this code?

    Quote Originally Posted by teylyn View Post
    fucell,

    this is not how it works. Post the links to all the sites where you posted the same question. Read the link romperstomper posted if you need help understanding why we ask this.

    When you ask a question, you DO have some responsibilities with regards to (n)etiquette. We're not here to clean up after you.
    ok ms. teylyn thanks for the info. i will not do that again. next time for sure i will follow the rules. ^__^

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Anyone can shrink this code?

    Well you could start by adding the code tags

+ 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