+ Reply to Thread
Results 1 to 7 of 7

VBA code to fill a cell in a column based on another column

  1. #1
    Registered User
    Join Date
    08-09-2015
    Location
    Karawang, Indonesia
    MS-Off Ver
    10
    Posts
    4

    VBA code to fill a cell in a column based on another column

    What is the VBA code to use, if i want to input some cylinder numbers from the "masterlist" sheet (column no.cyl) to the textbox cylinder 1 to 10 on the user form (sheet JCO, click on home button, choose JCO), then at the column "status" will be shown "Ready" at the same row with the no.cyl we've inputed.

    Really need help... thanks a lot
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by donhadriano; 08-10-2015 at 07:51 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,631

    Re: Need Help...! What is the VBA code to use...

    Please change your thread title as per forum rules and add a sample sheet instead of a picture - Thx

  3. #3
    Registered User
    Join Date
    08-09-2015
    Location
    Karawang, Indonesia
    MS-Off Ver
    10
    Posts
    4

    Re: Need Help...! What is the VBA code to use...

    I've revised it...please help

    thanks

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VBA code to fill a cell in a column based on another column

    Just to make sure I understand, you want to put a cylinder number in some of the 10 textboxes on your JCO userform and then click the "ok" command button. Once the command button is clicked you want to find those cylinder numbers on the Masterlist sheet and have column F (status column) read "Ready". Is this correct?
    If you are happy with my response please click the * in the lower left of my post.

  5. #5
    Registered User
    Join Date
    08-09-2015
    Location
    Karawang, Indonesia
    MS-Off Ver
    10
    Posts
    4

    Re: VBA code to fill a cell in a column based on another column

    Yes, correct Sntkynts

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: VBA code to fill a cell in a column based on another column

    If you place this in a standard module then you could call it from your OK button code.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-09-2015
    Location
    Karawang, Indonesia
    MS-Off Ver
    10
    Posts
    4

    Re: VBA code to fill a cell in a column based on another column

    Thanks a Ton, Skywriter.
    It is solved now

+ 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] Pattern Building VBA Code - Working code, would like to use cleaner code
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-10-2015, 03:05 PM
  2. [SOLVED] Excel VB code. Message pops up while code running asking question. Code must not wait.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 06:10 AM
  3. [SOLVED] VBA code to save current worksheet as temporary PDF file and then add to my existing code
    By brianfromla in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2014, 08:35 AM
  4. [SOLVED] VBA code for assigning a numeric code to text; then numeric code populates table
    By cteaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2014, 08:01 PM
  5. Replies: 2
    Last Post: 12-17-2013, 11:51 AM
  6. Replies: 2
    Last Post: 03-09-2013, 04:30 AM
  7. Replies: 2
    Last Post: 03-17-2011, 08:55 PM

Tags for this Thread

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