+ Reply to Thread
Results 1 to 3 of 3

VBA User Form Updating Data and dynamic date ranges

  1. #1
    Registered User
    Join Date
    02-21-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    40

    Lightbulb VBA User Form Updating Data and dynamic date ranges

    Hello there, I have a couple of queries I am struggling with and I am after some assistance.
    I have a "Data" tab with columns of data fields, and a user form which can Add to the next available row, and another user form which can find them via a drop down bringing back all of the fields into the user form. I want to basically use the 2nd form to be able to "update" data fields.

    For example, I want the value of TextBox1 to change in the data if I change it in the userform and click update. The bit below where this is wrong is in the "currentrow" selection as this is not clearly defined- is there another way I can update the data using a vlookup function? The key reference field is called cboref and is a drop down in my user form e.g. if cboref has a match in my data and I click update then whatever I have in the user form for TextBox1.Text I want it to update the value in column 3 of that row where there is a match on cboref....

    Please Login or Register  to view this content.
    The second query I have is around row entries- I have a list of certain tasks which are due on different days e.g. every Monday, or monthly e.g. third wednesday of every month etc. I want some criteria which can look up the frequency of the task, match it to the data sheet and if the task before todays date has been marked as 100% complete in the 'progress' column, I want vba to automatically copy that row, paste it to the next available row in the data with the next date due (based on the frequency). I guess this could be tricky to code up and we may need something to check the days that the task is due

    Kind regards

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: VBA User Form Updating Data and dynamic date ranges

    This should work.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    02-21-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: VBA User Form Updating Data and dynamic date ranges

    Excellent, thank you very much for this. Worked a treat ;-)

+ 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. Replies: 3
    Last Post: 02-14-2014, 12:23 PM
  2. Updating multiple cells based a master sheet and showing results in a User Form
    By katkins0429 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-14-2013, 05:18 AM
  3. Dynamic named ranges and updating where formulas pick from
    By Muammar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2012, 08:50 AM
  4. Create a Dynamic User Form
    By abhishekchak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2012, 06:53 AM
  5. [SOLVED] Adding Dynamic Text to a User Form
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2012, 01:38 PM
  6. [SOLVED] User Form not updating worksheet
    By denise6372 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2012, 02:47 AM
  7. Dependent Combobox on Form not updating from dynamic range
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2011, 12:59 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