LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default help please..... can this be done

Quinn,

First it helps if you reply to each post and leave the previous posts in.
This way we can more easily follow what has been said and suggested.
Thanks...

Not sure what you mean by "can you tell me how
to bind it to the button i have placed on the work sheet. also can i protect
the saved copy so it cant be edited"

You can use code to protect the workbook and the worksheets. Before you
save it - you can add a password to the VB code to prevent users from
accessing the code.

"If you can dream of it - you can usually build it in."

Just remember that password protection only prevents the user from making
unwanted entries and such. It can be easily broken.
The VB protection is a little stronger.

You can send me a copy of the template with explicit instructions and I can
work on it with you.


Remove "AYN" from email to respond

================================================== ================
My Previous post:
Quinn,

I am fairly sure that it can be done.

Play with the macro recorder to to get basic code for all the steps needed.
(use a copy of your template)

You can create a file name from the cells and save with that name:

Dim fname as string
fname = Range("H13") & " " & Range("E12")

' remove & " " if you don't want a space.

than add 1 to Range("E12"), clear all the data and resave
as the original file name.
Range("E12") = Range("E12") + 1

Range("......").Clearcontents

Hope this gets you started.

Post back and let us know how it works.
Also let us know if you need more specific code.


--
steveB

Remove "AYN" from email to respond
"QuinnDexter" wrote in message
...
Thanks steve... i will have a play with your sugestions.. can you tell me
how
to bind it to the button i have placed on the work sheet. also can i
protect
the saved copy so it cant be edited, and the number in the origanal
template
must be protected from editing except when the 1 is added at the save

Tom... it is a template (though not saved in the template directory (saved
to desk top)) i say the origanal as it will creat another copy with a new
name and data when i save it,
thanks for your code i will give it a try and let you know

thanks :)



 
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



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