Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Make an unsaved file copy in memory?

Hello all. I am using VBA in Excel XP and Win 2k. Please help me if you can. Sorry for the length
I have a program structured as follows:

1. User opens a program file

2. An "on open" event then opens a template form file located elsewhere on the network (in a more secure location); The key is to keep the original template form unchanged by the user.

3. User can complete this form and click a "submit" button which: causes a program to increment a form counter and place a unique serial number on the form, saves the form in a specific location, and notifies the approver that a form is ready for review and approval

4. OR, the user can at any time, close the form without saving it (i.e. cancel). Since the "submit" button was not clicked, the form never receives a serial number (i.e. no skipped numbers) and is not saved

HERE IS THE QUESTION
I can do all of this already, except the part where a copy of the template form is opened for the user into memory. This would be as though a new unsaved Excel file were just opened, but not yet saved. Make sense? Is this even possible

The template contains a single visible sheet and two "very hidden" sheets, programs, and spreadsheet controls and would not receive a form number until the user saves it by clicking the "submit" button

Please help with this if you can or post back questions if my description is unclear. Thank you very much in advance for your assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Make an unsaved file copy in memory?

I am not convinced I understand the problem. BUT ..
If you want Excel to behave as if the activeworkbook had not been saved, se

ActiveWorkBook.Saved = Fals

Or if you want Excel to behave as if the workbook had been saved, se

ActiveWorkBook.Saved = True
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Make an unsaved file copy in memory?

Hi AA2e72E

Thanks for reply, but if I use "ActiveWorkBook.Saved = False" and the user clicks the "Submit" button, the program will save the currently active template file

Will this not cause my template file to be overwritten with a now completed form

I want the user to have access to a COPY of the original form (that is not yet saved)...can do?
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Make an unsaved file copy in memory?

I'm confused, by default isn't a template just that: copies of the original. The template should not change!
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Make an unsaved file copy in memory?

Is this a true template form with an *.xlt* extension? If I am no
mistaken, once the template is filled out and saved, it is saved wit
an* .xls* extension. This will keep the original *.xlt* form intact.



Rolli

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Make an unsaved file copy in memory?

Aha! Good point. Thanks to all who responded

My "template" is currently saved as an xls, I need to convert to an xlt.

Somehow, this concept totally slipped my mind

Thanks again.
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
recovering an unsaved file gabi.al Excel Discussion (Misc queries) 2 July 10th 09 04:34 PM
Retrieve unsaved file King Cole Excel Discussion (Misc queries) 1 May 30th 07 09:44 PM
is it possible to recover an unsaved excel file that was x'd out marmac520 Excel Discussion (Misc queries) 4 May 5th 06 10:09 PM
Recover an unsaved file??? ramach53 Excel Discussion (Misc queries) 0 March 4th 05 12:17 AM
Unsaved file as E-mail attachment raj Excel Programming 1 December 6th 03 05:00 PM


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

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"