Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Setting a Constant when creating a new file from a template?

Hello All,

I have a template for time sheets. I have to email these timesheets to my
supervisor on the 15th and the last day of the month. In this template (and
all files based on this template) I have code to pop up message boxes within
a few days of the end of the pay period reminding me to email the timesheet.

What I would like to be able to do is assign the pay period end date to a
constant (something like "datPayPeriodEnd"), that way when I email it to my
boss, he won't have to hassle with the pop-up messages. I plan on putting
additional message/input boxes to help automate data entry and I would like
it if my boss didn't have to hassle with these as well.

Is there a way to assign a constant when creating a new file from a
template? If so, how?

Thanks for any help anyone can provide,

Conan Kelly


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Setting a Constant when creating a new file from a template?

I have a similar application that uses a template, loads data and when first
opened initialises the workbook. Saves itself and then emails it to a number
of users. In the process of emailing a switch is stored on a control sheet
(very hidden from the user) that this used to turn on and off certain
functionality.

The method is as follows.

Template control sheet cell is set to 'LOAD'
Template open event reads this cell if 'LOAD' then read data etc....
Template before save event sets cell to 'RUN'
File is saved and emailed to users.
When the user opens it the control sheet cell setting of RUN is used to take
determine what the user sees and how.

This approach should work for you?

--
Cheers
Nigel



"Conan Kelly" <CTBarbarin at msn dot com wrote in message
...
Hello All,

I have a template for time sheets. I have to email these timesheets to my
supervisor on the 15th and the last day of the month. In this template

(and
all files based on this template) I have code to pop up message boxes

within
a few days of the end of the pay period reminding me to email the

timesheet.

What I would like to be able to do is assign the pay period end date to a
constant (something like "datPayPeriodEnd"), that way when I email it to

my
boss, he won't have to hassle with the pop-up messages. I plan on putting
additional message/input boxes to help automate data entry and I would

like
it if my boss didn't have to hassle with these as well.

Is there a way to assign a constant when creating a new file from a
template? If so, how?

Thanks for any help anyone can provide,

Conan Kelly




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
What happened to setting up a constant using F4? Stan Excel Worksheet Functions 2 April 18th 10 07:07 AM
Excel Template (Creating a Function in the template) Té Excel Worksheet Functions 3 March 6th 09 07:17 AM
Creating a row that is constant and updatable across all worksheet Global Sys Admin Excel Discussion (Misc queries) 5 October 9th 08 11:25 PM
Need Help Creating a Macro to Multiply Cells by a Constant Number Tyn Excel Discussion (Misc queries) 5 February 12th 07 10:40 AM
setting transferred text as constant Tonto Excel Discussion (Misc queries) 1 October 26th 05 11:01 PM


All times are GMT +1. The time now is 01:18 AM.

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

About Us

"It's about Microsoft Excel"