Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving info on form


I am trying to put together a form that has a save button on it.
would like the save button to save the information in the text boxes i
a filename I specify. The code I'm working with is as follows:


Code
-------------------
Private Sub Save_Button_Click()

Application.DefaultSaveFormat = xlExcel2003Workbook
Do
fName = Application.GetSaveAsFilename
Loop Until fName < False
ActiveWorkbook.SaveAs Filename:=fName
ActiveWorkbook.Saved = True

End Su
-------------------


For some reason it is not actually saving the information with the for
though (it's just an empty form that is saved). Can someone help m
please (I'm pulling my hair out over here).

Thank you for any input.

jlrope

--
jlrope
-----------------------------------------------------------------------
jlroper's Profile: http://www.excelforum.com/member.php...fo&userid=2670
View this thread: http://www.excelforum.com/showthread.php?threadid=39971

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Saving info on form

You may want to think about adding a worksheet (hidden) that you can use to
store all the stuff you want.

Then when you open the workbook (or load the form), you can retrieve values from
that hidden worksheet.



jlroper wrote:

I am trying to put together a form that has a save button on it. I
would like the save button to save the information in the text boxes in
a filename I specify. The code I'm working with is as follows:

Code:
--------------------
Private Sub Save_Button_Click()

Application.DefaultSaveFormat = xlExcel2003Workbook
Do
fName = Application.GetSaveAsFilename
Loop Until fName < False
ActiveWorkbook.SaveAs Filename:=fName
ActiveWorkbook.Saved = True

End Sub
--------------------

For some reason it is not actually saving the information with the form
though (it's just an empty form that is saved). Can someone help me
please (I'm pulling my hair out over here).

Thank you for any input.

jlroper

--
jlroper
------------------------------------------------------------------------
jlroper's Profile: http://www.excelforum.com/member.php...o&userid=26709
View this thread: http://www.excelforum.com/showthread...hreadid=399710


--

Dave Peterson
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
Saving Autorecover info in 2007 so SLOW! Kevryl Excel Discussion (Misc queries) 2 April 23rd 10 05:47 AM
saving info in drop down boxes RobD03 Excel Worksheet Functions 0 October 1st 09 02:50 PM
How do I save Excel info without saving the reference cells? Dave Excel Discussion (Misc queries) 2 July 9th 06 09:38 PM
User Form Info Peter Excel Discussion (Misc queries) 4 April 13th 06 01:05 PM
Saving Info to Matrix Jeff Excel Discussion (Misc queries) 4 August 22nd 05 10:56 PM


All times are GMT +1. The time now is 11:13 AM.

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"