Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting Cell entries then save and overwrite template

I'd like to be able to delete the entries in certain cells, then sav
the file as a template (overwriting an existing template), that wa
some information I have entered will be saved in the template whil
other information is removed. How would I go about doing this

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Deleting Cell entries then save and overwrite template

Open the workbook you want to use, make the changes, do File = Save As,
specify the name of the old template and specify file type in the dropdown
as .xlt.

--
Regards,
Tom Ogilvy

"RPIJG " wrote in message
...
I'd like to be able to delete the entries in certain cells, then save
the file as a template (overwriting an existing template), that way
some information I have entered will be saved in the template while
other information is removed. How would I go about doing this?


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting Cell entries then save and overwrite template

ok, that answers my question but I didn't qualify my question wel
enough, I'd like to do this programmatically, sorry

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Deleting Cell entries then save and overwrite template

sPath = "C:\Myfiles\"
ActiveWorkbook.Saveas Filename:=sPath & _
"MyOldTemplate.xlt", FileFormat:=xltemplate

--
Regards,
Tom Ogilvy

"RPIJG " wrote in message
...
ok, that answers my question but I didn't qualify my question well
enough, I'd like to do this programmatically, sorry.


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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting Cell entries then save and overwrite template

and for deleting cell contents, I was using this


Code
-------------------
Range("D13:H13").Select
Selction.ClearContent
-------------------


that I captured using the macro recorder, but I get an error sayin
object required or something of the like

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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Deleting Cell entries then save and overwrite template

for your existing code, Selection is misspelled

you could just do

Range("D13:H13").Clearcontents

--
Regards,
Tom Ogilvy


"RPIJG " wrote in message
...
and for deleting cell contents, I was using this


Code:
--------------------
Range("D13:H13").Select
Selction.ClearContents
--------------------


that I captured using the macro recorder, but I get an error saying
object required or something of the like.


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



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
locating and deleting duplicate cell entries John Excel Discussion (Misc queries) 2 December 8th 09 06:43 PM
Save As / Overwrite Brent E Excel Discussion (Misc queries) 4 October 23rd 08 08:19 PM
How to save a file without overwrite or save a copy? SettingChange Setting up and Configuration of Excel 1 November 3rd 05 02:10 AM
Save .csv with overwrite Kevin Excel Programming 1 April 27th 04 02:38 AM
Save As without overwrite prompt Fred Smith Excel Programming 2 March 3rd 04 01:23 PM


All times are GMT +1. The time now is 03:26 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"