ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
楼主: KCFONG

餐饮系统

[复制链接]

TA的精华主题

TA的得分主题

发表于 2011-9-4 23:17 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2011-9-5 02:55 | 显示全部楼层
经测试,2010里面出问题
隐藏菜单的时候出错。

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-9-6 08:51 | 显示全部楼层
AVEL 发表于 2011-9-5 02:55
经测试,2010里面出问题
隐藏菜单的时候出错。

Thanks, I will try to fix it.
But seems that 2010 cannot 隐藏菜单.

TA的精华主题

TA的得分主题

发表于 2011-9-6 08:58 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
本帖最后由 liucqa 于 2011-9-6 09:17 编辑

楼主不是chinese吗,为啥有话不好好说,非让我看鸟文

exe里面就一个vbs文件

Dim oExcel,fn,fso
fn=Replace(WScript.ScriptFullName,Right(WScript.ScriptFullName,4),".xls")
on error resume next
Set oExcel = GetObject(,"Excel.Application")
if err.number<> 0 then  Set oExcel =CreateObject("Excel.Application")
err.clear
oExcel.Visible=FALSE
REM set fso = oExcel.Workbooks.Open (fn,,,,"123")
set fso = oExcel.Workbooks.Open ("D:\餐饮系统\餐饮系统 v3.xls",,,,"d13579(8)")
rem oExcel.Visible=TRUE
Set oExcel = Nothing
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile(WScript.ScriptName) '删除脚本自身
Wscript.Quit

隐藏菜单的代码可以借鉴
Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Public cmdBarFlag() As Boolean '标识工具条状态
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Const WS_CAPTION As Long = &HC00000
Private Const GWL_STYLE = (-16)
Private Const WS_EX_TOOLWINDOW As Long = &H80
Private Const WS_THICKFRAME = &H40000
Private Const WS_SIZEBOX = WS_THICKFRAME '隐藏 Excel 标题栏
Sub Fshiddenbar() 'hidden all bar
    hMenu = FindWindow(FindWindow("XLMAIN", Application.Caption), 0)
    RemoveMenu hMenu, &HF060, MF_BYCOMMAND
    Application.CommandBars("Worksheet Menu Bar").Enabled = False
    Application.DisplayFormulaBar = False
    SetBar 0
    Application.DisplayFullScreen = True
    ActiveWindow.DisplayHeadings = False
    ActiveWindow.DisplayWorkbookTabs = False
    Application.Caption = "餐饮系统"
End Sub

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-9-24 00:06 | 显示全部楼层
IT SEEMS THAT YOUR 英文一塌糊涂

http://hk.knowledge.yahoo.com/question/question?qid=7009071301382

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-9-23 16:59 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
Thanks a lot.
Since I live in HK and don't know Chinese Type.
Sorry for inconvience caused.

TA的精华主题

TA的得分主题

发表于 2011-9-23 22:31 | 显示全部楼层

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-9-23 23:10 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
Place the folder in D drive

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-9-23 23:47 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
TO 18/F
SERACH "谢谢 KCFONG", THEN SEE WHAT I HAD DONE IN EH.
DONOT CRITICIZE OTHERS BEFORE YOU KNOW NOTHING.

TA的精华主题

TA的得分主题

 楼主| 发表于 2011-9-23 23:50 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
MY 等级 IS NOT 灌水
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-11-21 21:48 , Processed in 0.034657 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表