+ Reply to Thread
Results 1 to 14 of 14

how can add value in specific cell using userform VBA

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    how can add value in specific cell using userform VBA

    Dear All expert
    marry Christmas for all and happy new year

    i would like to know if the date picker can add in excel 64 bit becuase i try to add in microsoft control but still missing in
    list and found someone wrtie on internet its only work on excel32 its correct?
    if correct , how can replace date picker in excel 64 bit?

    second i would like to use userform to add value to excel sheet as in my attahced file
    want to add value in B column With yellow color using userfrom
    then when i press calculate and export button first check if there is any value not enter in textbox or not and if any one missing
    show me the missing in pop message and goto with scrol mouse direct to missing or show all missing with other color (red)
    then if all completed want to export data in report sheet in range A1 : D49 only in one page with gridline (pdf file) with
    the same formate of excel sheet
    and show me windows that give me choice to save the pdf exported file on any directory i select



    pdf file exported want to be secured meaning protected from editing
    thanks for all attention and concern
    regards
    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: how can add value in specific cell using userform VBA

    for part 1
    untested myself but seems you can just bring it in manually
    https://social.msdn.microsoft.com/Fo...forum=exceldev

    alternatively just use a custom one
    http://www.rondebruin.nl/win/addins/datepicker.htm
    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
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: how can add value in specific cell using userform VBA

    Dear Humdingaling
    many thanks for your reply
    i try two methods but it not working
    first one
    untested myself but seems you can just bring it in manually
    https://social.msdn.microsoft.com/Fo...forum=exceldev
    its write work on excel 32 bit with windows 64 but my case excel 64 on windows 64
    second one its work but with sheet not user form meaning if you look to my attached file
    first items is Date want to enter date in this easily with other data then press command button to enter value in corresponding cell in specific sheet
    hope you can understand me

  4. #4
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: how can add value in specific cell using userform VBA

    here the last edit in my file that i found code online and its work for data entry but how can make other
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: how can add value in specific cell using userform VBA

    can someone expert check my last file i try to add another code for exportation that will open save dialog only with PDF option but want to this code with add data entry code only one button not like my file two
    also file name will be from cell B3 in report file
    Attached Files Attached Files

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: how can add value in specific cell using userform VBA

    .

    Here is some of the code.

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

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

    Re: how can add value in specific cell using userform VBA

    whoops
    did my example but forgot to post it

    see attached working for the color textbox and checking to make sure all text boxes are fill in because writing output
    did some minor tweaking of the control names (mainly the labels) to facilitate

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

  8. #8
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: how can add value in specific cell using userform VBA

    Quote Originally Posted by humdingaling View Post
    whoops
    did my example but forgot to post it

    see attached working for the color textbox and checking to make sure all text boxes are fill in because writing output
    did some minor tweaking of the control names (mainly the labels) to facilitate

    Please Login or Register  to view this content.
    Dear humdingaling
    googd morning
    your post its working in data entry and for missed data but it give error debug message even i make ok to enter missed data as in attahced photo
    Attached Images Attached Images

  9. #9
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: how can add value in specific cell using userform VBA

    Dear Logit
    good morning
    your post its working also good for data entry but for exportation its give me message the data save on my location but when i look to this location nothing found

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

    Re: how can add value in specific cell using userform VBA

    What line is highlighted when you press debug

  11. #11
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: how can add value in specific cell using userform VBA

    .
    My apologies. Left off a line or two. Here is the corrected macro :

    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: how can add value in specific cell using userform VBA

    Quote Originally Posted by humdingaling View Post
    What line is highlighted when you press debug
    Dear humdingaling
    I try it again and it working now after i save it on my computer not like before open it direct from interne

  13. #13
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: how can add value in specific cell using userform VBA

    Quote Originally Posted by Logit View Post
    .
    My apologies. Left off a line or two. Here is the corrected macro :

    Please Login or Register  to view this content.
    Dear Logit
    its working now but there is something missed
    first not make highlight for missed value , just give error message
    second file exportation need to be name of value in report sheet cell B3

  14. #14
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: how can add value in specific cell using userform VBA

    Could you please change the code to fit export data not from active sheet but from specific sheet Named (Report sheet)
    and file exported name from B3 in report sheet
    and all data fitted in one page and file exported have the same format as in excel even grid line

+ 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] Userform popup when entry in cell is specific
    By rpcoates1956 in forum Excel General
    Replies: 9
    Last Post: 08-24-2017, 10:02 PM
  2. [SOLVED] userform specify last empty cell in specific row
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2016, 09:24 AM
  3. [SOLVED] Enter data into a userform text box to show in a specific cell in a specific worksheet
    By Stevecraig211 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2016, 10:02 AM
  4. [SOLVED] How can I link a Macro userform to a specific cell?
    By TBM in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2016, 01:30 AM
  5. Userform populate specific cell with data
    By kmcarter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2011, 10:33 AM
  6. data from userform into specific cell in a table
    By teacher_rob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2011, 08:52 AM
  7. Enter text into a specific cell using a userform
    By Cushionsupplier in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2010, 05:38 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