+ Reply to Thread
Results 1 to 7 of 7

Copy LDDate value to cell

  1. #1
    Registered User
    Join Date
    02-12-2015
    Location
    yORK,eNGLAND
    MS-Off Ver
    2010
    Posts
    11

    Copy LDDate value to cell

    Hello, could do with a little help with this one.

    I have a series of Textboxes, combo boxes and date boxes on a work sheet creating a user form. I want the values entered by the user to copy to another cell on the worksheet. For the textboxes and combo boxes I have been using the following macro:

    Private Sub TextBox10_Change()
    Sheets("Add New Cus").Range("AS4").Value = TextBox10.Value
    End Sub

    This has been successful. I am having trouble though with the LDDate1 and LDDate2 boxes, what would the equivalent macro for these be?

    (The worksheet name is "Add New Cus")

    Thanks!

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Copy LDDate value to cell

    Hey,

    Your example sounds perfect...
    You can see the properties of your object like text box or combo box.....you can see the name as well there.......

    Please Login or Register  to view this content.
    you can add the following....whatever is highlighted in your combo box will be appear in AS4
    Please Login or Register  to view this content.
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Registered User
    Join Date
    02-12-2015
    Location
    yORK,eNGLAND
    MS-Off Ver
    2010
    Posts
    11

    Re: Copy LDDate value to cell

    Hello,
    Thanks for your help but it doesn't work for a LDDate object.

    What would the equivalent formula be for a LDDAte object?

    Thanks

  4. #4
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Copy LDDate value to cell

    Hey sorry
    I got it wrong......what would be LDDate1 and LDDate2?
    Could you explain.....a more.....what you are looking for.....

  5. #5
    Registered User
    Join Date
    02-12-2015
    Location
    yORK,eNGLAND
    MS-Off Ver
    2010
    Posts
    11

    Re: Copy LDDate value to cell

    LDDate is an object which allows the user to choose a date from a drop down calendar.
    The value selected is the one which I want to automatically mirrored in a cell

  6. #6
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Copy LDDate value to cell

    try this....
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-12-2015
    Location
    yORK,eNGLAND
    MS-Off Ver
    2010
    Posts
    11

    Re: Copy LDDate value to cell

    This still doesn't work?

+ 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. vba to copy and insert row and copy/paste cell value if cell not blank!
    By GaryDML in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2014, 02:17 AM
  2. [SOLVED] How to copy data in a cell in Sheet1 to a cell in Sheet2 using =COPY( )?
    By Mr D Relf in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-17-2013, 10:39 AM
  3. copy a specif cell value, find another like that in sheet copy adjacent cell and pate
    By smwaqas89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2013, 10:00 AM
  4. LDDate on Userform
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-08-2012, 12:37 PM
  5. LDdate
    By Jlong1980 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-08-2006, 11:09 AM

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