+ Reply to Thread
Results 1 to 7 of 7

VBA to autopopulate values

  1. #1
    Registered User
    Join Date
    12-19-2010
    Location
    mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    71

    VBA to autopopulate values

    Hi everyone,

    I am looking for a vba function that will auto populate values based on another cell.

    I have attached an excel workbook here. there are some values in column A,B and C column. What I am looking out here is, if I change anything in column A,B or C then It should reflect in column F G and H. I can simply give "=" cell reference but I don't want to use any formula in the file.

    Hence I am looking for a VBA function which will realtime change vales in column F G and H based on changes done in A B or C.

    Why looking for VBA function specifically is because, values in A B and C will keep on changing and I don't have run a macro everytime. So if if anything changes in A B C it should immediately hv impact in column F G H

    At the moment I have given simple "=" reference but I don't want that,

    If anyone can help me here then great.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: VBA to autopopulate values

    Try this:

    Please Login or Register  to view this content.
    or:

    Please Login or Register  to view this content.
    or:

    Please Login or Register  to view this content.
    Last edited by SjonR; 03-09-2019 at 02:19 AM.

  3. #3
    Registered User
    Join Date
    12-19-2010
    Location
    mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: VBA to autopopulate values

    Hi SjonR,

    Unfortunately it's not working out. I pasted your code in module and changed some values in column A and B but that didn't have any impact in column F and G.

    Basically I have removed = reference in column F G and H, that was just to show what exactly I am looking for.

    Ideally column F G H will not have anything to start with, As soon as I put any VBA function in backend it should populate vales in F G H


    That's what I am looking for.
    Last edited by saurabhlotankar; 03-09-2019 at 02:32 AM.

  4. #4
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: VBA to autopopulate values

    In which module did you paste it?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-19-2010
    Location
    mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: VBA to autopopulate values

    Hey SjonR,

    Tht's worked perfectly now. I was putting it into wrong module maybe.

    Now the next challenge, what if my values in column A B C and deriving from some other cell references.

    Basically suppose my raw data is on column L M N, and values in A B C are deriving from column L M N then it is not working out.

    If I change anything in column L M N then is is showing effect in column A B C but not in E F G.

    You will understand after looking at the attached worksheet.

    Please find attached.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: VBA to autopopulate values

    try

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-19-2010
    Location
    mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: VBA to autopopulate values

    This working perfectly in this workbook. But when I try to do the same thing in another fresh workbook its not working at all.

    Just want to know do I need to check any setting in excel, because of which its not working.

    Thanks.

+ 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] Autopopulate macro, needs to searrch for appropriate section to autopopulate
    By Butcher1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-09-2015, 09:11 AM
  2. [SOLVED] Autopopulate all values in a Named Range based on the value of a cell
    By lhickerson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2015, 12:10 PM
  3. Replies: 4
    Last Post: 06-29-2014, 04:33 AM
  4. AutoPopulate?? Need to divide values by varying members
    By RoscoW88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2013, 11:11 AM
  5. how to autopopulate cells based on values from other cells
    By marbie in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-28-2011, 05:31 AM
  6. autopopulate...but Locked
    By bfly03 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-22-2009, 12:34 PM
  7. [SOLVED] Autopopulate with zero
    By roy.okinawa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2005, 09:20 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