excel - Sub Userform calendar populating on spreadsheet cell instead of on userform -


i have run across problem of using dtpicker dates. have added own calendar popup , when in usereform , click on box or button calendar populates date on original spreadsheet (it looks in last selected cell) instead of userform - textbox8. @ loss, works intended , other times doesn't , previous.

private sub date_button_1_click() userform1.textbox8 = activecell 'this first calendar button & box frmcalendar.show_cal userform1.textbox8.value = g_sdate end sub  private sub textbox8_enter() userform1.textbox8 = activecell g_bform = true frmcalendar.show_cal userform1.textbox8.value = g_sdate end sub 

i sure staring me in face. assistance great. thanks.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -