Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Call up form calendar form VBA

Setup a couple of public variables, and load these variables from within the
form before closing the form down.

--
HTH

Bob Phillips

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Val" wrote in message
...
I have a macro which filters the data based on two dates. Currently, the
dates must be entered in two cells before running the macro. Macro is then
referring to these two cell values. I'm trying to improve and have the

user
promted to enter start and end dates through the frmCalendar, which I

already
created. Is it possible to program this and save these two variables in

VBA
for future use?

I started with

' Start date variable
Public sDate as Date
' End date variable
Public nDate as Date
MsgBox "Enter Start Date"
frm.Calendar.Show

Getting an error so far. Any idea how to make it work? Thank you.

Val




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy form field value to another form (calendar) [email protected] Excel Programming 1 December 1st 05 09:58 PM
How Can I call any form or macro.. Victor Excel Worksheet Functions 1 November 16th 05 08:42 AM
Button to call a user form? Hru48[_3_] Excel Programming 3 September 1st 05 06:22 PM
how to call a form JulieD Excel Programming 5 April 13th 05 08:27 PM
Add-In...form call Ajit[_3_] Excel Programming 1 April 28th 04 03:49 PM


All times are GMT +1. The time now is 02:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"