+ Reply to Thread
Results 1 to 2 of 2

run different code upon the number assigned in textbox

  1. #1
    Registered User
    Join Date
    10-07-2011
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    54

    run different code upon the number assigned in textbox

    Hi there,

    I would like to have a code that inputs the data from textbox1 (in userform) to a certain range upon a number in textbox2 (in userform).

    For example if I input "1" to textbox2, the data in textbox1 will be pasted in range AE3
    if 2 --> AD3
    if 3 --> AC3
    .
    .
    .
    if 30 --> B3


    Please Login or Register  to view this content.

    Thanks,

    PS I want to do this otherwise I need to have 30 buttons to run each of them.
    Last edited by copythat; 12-06-2011 at 06:01 AM.

  2. #2
    Registered User
    Join Date
    10-07-2011
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: run different code upon the number assigned in textbox

    I have already got it and now it works.

    Please Login or Register  to view this content.
    Last edited by copythat; 11-28-2011 at 06:30 PM.

+ 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