Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
| Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 23rd, 2004, 10:53 AM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to venky
Default UserForm - Calender control

Hi,

Am creating a userform and added calender control.
Need to get the "Value" upon a date selection from the calender and put it into the active worksheet.

Need some help on this.
Thanks.

  #2 (permalink)  
Old October 27th, 2004, 03:40 AM
Authorized User
 
Join Date: Aug 2004
Location: , , .
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In theabsence of another reply .. I use a Microsoft Calendar Control, but it might be different to yours. The method here is to see what the names of the textboxes are via Properties and use them as follows :-
Code:
Sub Button1_Click()
    frmCalendar.Show
    ActiveSheet.Cells(1, 2).Value = frmCalendar!txtFrom.Value
    ActiveSheet.Cells(2, 2).Value = frmCalendar!txtTo.Value
End Sub
-----------------------
Regards BrianB
Most problems occur from starting at the wrong place.
Use a cup of coffee to make Windows run faster.
It is easy until you know how.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calender control - How to open next page? paragdongre ASP.NET 2.0 Basics 3 November 5th, 2007 01:28 AM
Using calender control in datagrid bala24 General .NET 0 June 5th, 2006 02:40 AM
problem regarding calender control CsharpHelp C# 0 November 14th, 2005 07:47 AM
Calender control anita VB How-To 4 December 12th, 2004 03:10 PM
vb.net calender control rita General .NET 1 June 16th, 2004 11:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.