+ Reply to Thread
Results 1 to 4 of 4

Using VBA to auto populate cells based on user input (without using formulas if possible)

  1. #1
    Registered User
    Join Date
    11-06-2014
    Location
    UK
    MS-Off Ver
    Office 2003
    Posts
    10

    Using VBA to auto populate cells based on user input (without using formulas if possible)

    Hello

    Windows Server 2005
    Excel 2003

    This is based on the same spreadsheet I used in another thread post. I'm trying to create a spreadsheet where somebody who's computer illitarate can type a product code in column B and it'll auto populate column F and G all done in VBA without using forumlas within the spreadsheet itself.

    Reason being is that I'm under a strict file size limit and have to keep it as small as possible so having a forumla in one cell and dragging it down isn't the best option sorry.

    I tried to create a VBA code which would auto populate the cells by placing the forumla into the cells when needed meaning I don't have to have 4000 rows of formulas sitting there waiting to be used (if that makes sense) but I couldn't get it to work it just returns a value of 0 Also it only works on the one cell not he cells adjasent to each other (sorry I'm explaining that poorly)

    Also this process has to be done automatically without anybody resorting to macro buttons. Of course if anybody can come up with a method of doing this without inputting any forumals at all that'll be grand :D

    Any help would be very apprechiated thank you

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Using VBA to auto populate cells based on user input (without using formulas if possib

    Please Login or Register  to view this content.
    slight amendment
    Attached Files Attached Files
    Last edited by humdingaling; 11-20-2014 at 07:58 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-06-2014
    Location
    UK
    MS-Off Ver
    Office 2003
    Posts
    10

    Re: Using VBA to auto populate cells based on user input (without using formulas if possib

    Sir thank you very much for your help that's exactly what I needed :D

    Mind if I ask what '.Address' is please I've never seen it before I'm quite new to VBA?

    Again thanks much apprechiated :D

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Using VBA to auto populate cells based on user input (without using formulas if possib

    .address gives the cell reference

    ie
    if target is row 54
    Cells(Target.Row, 2) returns cell(5,2) = $B$54

+ 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. auto-populate based on input
    By JessicaSam in forum Excel General
    Replies: 1
    Last Post: 06-08-2012, 01:47 PM
  2. Code/Macro to populate table based on user input.
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-08-2011, 07:50 AM
  3. Auto populate based on user input
    By lotusblossom in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-20-2011, 02:58 AM
  4. Populate rows in the sheet based on user input in the cell
    By omdkhaleel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-04-2010, 10:48 AM
  5. Automatically populate a list based on defined categories -- user input varies
    By NearClueless in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2009, 06: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