Re: macro to save as
- From: Nazzy <Nazzy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Nov 2007 00:33:01 -0800
But i cant do that cos when im in Excel i cant see the menu bar with
Tools-Macros. So how do I get to edit the macro...cos i cant see the Tools
menu to get into the macro.
"Dave Peterson" wrote:
Try changing the False to True.
and reexecuting that statement
Nazzy wrote:
Hi, I tried this, BUT how do i get the Menu Bar back, cos now i cant get it
back, please.
Thanks
"Bob Phillips" wrote:
Application.Commandbars("Worksheet Menu Bar").Enabled = False
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Mo" <Mo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BD4AFB5A-755E-4AA5-A068-405F2A6F90C4@xxxxxxxxxxxxxxxx
Bob,But
Thanks for your help. I will give it a try.
I have one general question to ask. How or (can) do I hide the worksheet
menu bar. I tried View, Toolbars, Customize and unclick the menu bar.
it still defaulted to show the menu bar. My intention is to not allow the"yyyy-mm-dd")
user to delete, save as, or use other menus while in the work book. The
workbook is all driven by macros and there is no need for user to use or
"play" with the menu bar.
Thanks
Mo
"Bob Phillips" wrote:
You need to put it in a sub:-)
Sub SaveMyFile()
sFilename = Format(Worksheets("Sheet1").Range("A1").Value,
toans = MsgBox ("Save file as " & sFilename)
if ans = vbOK Then
Activeworkbook.SaveAs Filename:= sFilename
End If
End Sub
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Mo" <Mo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1A7CCFBD-872C-4928-87CF-EB270BE2F3CE@xxxxxxxxxxxxxxxx
Bob,"yyyy-mm-dd")
I got an error message - "Complie Error, Invalid outside procedure"
it highlite the ("A1")
"Bob Phillips" wrote:
sFilename = Format(Worksheets("Sheet1").Range("A1").Value,
ans = MsgBox ("Save file as " & sFilename)
if ans = vbOK Then
Activeworkbook.SaveAs Filename:= sFilename
End If
should do it
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Mo" <Mo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0EF07C3F-0542-4CF8-AECD-3C53B394F8AE@xxxxxxxxxxxxxxxx
I need to create a macro & assign it to a button. the macro needs
thesave
the current file based on a date that is entered in a cell. also
save itmacro
needs to prompt the user to verify the filename(date) and then
and
return to the current worksheet.
thanks
Mo
--
Dave Peterson
- References:
- Re: macro to save as
- From: Nazzy
- Re: macro to save as
- From: Dave Peterson
- Re: macro to save as
- Prev by Date: Re: Change width of 51 Columns
- Next by Date: Re: Declaring a collection as a particular type of object or a particular class
- Previous by thread: Re: macro to save as
- Next by thread: Hiding Named ranges
- Index(es):
Relevant Pages
|