This is a discussion on Excel Help Part 2 within the Off Topic forums, part of the General category; Hi, For my project i have another hurdle. I need to make a button that will open save as, is ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Hi,
For my project i have another hurdle. I need to make a button that will open save as, is this possible? If it is then theres a second question. I currently have the date in a cell that auto updates. Is it going to be possible to make it save as the date or what ever is in the certain cell? Any help would be great. Maybe Mike the Excel Counselor could help me again ![]() Cheers, Nick
__________________
Nick Bowers 68c v4.09 Developer |
|
#2
|
||||
|
||||
|
Hi,
I have worked out the following: Code:
Sub Button6_Click() ThisWorkbook.Save ThisWorkbook.Close End Sub Cheers, Nick
__________________
Nick Bowers 68c v4.09 Developer |
|
#3
|
|||
|
|||
|
Hi
You can try this: Quote:
__________________
objelland V3.1.5b Developer |
|
#4
|
||||
|
||||
|
Hi,
I did that and get this error: http://everythingsfree.org/image//im...18792excel.jpg Any idea why? Cheers
__________________
Nick Bowers 68c v4.09 Developer |
|
#5
|
||||
|
||||
|
Hi,
I also found this code. It seems to do the same thing but i get an error saying "Compile error" http://everythingsfree.org/image//im...5509excel2.jpg Quote:
Cheers, Nick
__________________
Nick Bowers 68c v4.09 Developer |
|
#6
|
|||
|
|||
|
I cant see why you are getting the error message, but I can see that you are refering to the variable strName in the first line of your code, without declaring it. You are declaring the variable at line 18 or so (Dim strName As String). Move that line to the top of your code! That might help!
Cheers!
__________________
objelland V3.1.5b Developer |
|
#7
|
||||
|
||||
|
Hi,
Thanks for the help but i get another error. http://everythingsfree.org/image//im...58110excel.jpg Any ideas? Nick
__________________
Nick Bowers 68c v4.09 Developer |
|
#8
|
||||
|
||||
|
It would seem to be that since you are using the current file path and then concatenating "\" & the string name then it is expecting to find a directory with the name of the "stringname"
example: current file path = mycomputer\documents\excel\myproject New file path in your code = mycomputer\documents\excel\\newfilename Try getting rid of the extra "\" OR create another directory for the save as files and include that after the "\" & "mysavedprojectfiles" & ... -Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8, 4.1b3 Templates for sale | 68 Classifieds Customizations | My blog on 68 Web Hosting | Web Design & Development I am not a 68C employee, just a user and try to help out |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help your customers pay for ads in Not Completed status | civ | v3.1 Modules & Modifications | 39 | 10-06-2008 03:19 AM |
| Excel Help Needed | bowers01 | Off Topic | 2 | 08-19-2008 05:31 AM |
| SEO _ to - From The "Experts" | CB | v3.1 Questions & Support | 19 | 01-19-2008 02:55 PM |
| CSV & Microsoft Excel | Maffo | Off Topic | 9 | 12-04-2007 04:27 PM |