Excel精英培训网

 找回密码
 注册
查看: 74141|回复: 312

[其它] 事业单位公务员晋级工资自定义函数(湖南)

  [复制链接]
发表于 2008-5-29 12:31 | 显示全部楼层 |阅读模式
<p>看到有人在网上发了个新级工资的自定义函数,感觉很有用,我这次做工资的时候,也做了一个事业单位公务员晋级工资自定义函数,是以湖南省的为模板的,不是湖南省的,请自行修改数据后再使用!</p><p>&nbsp;
游客,如果您要查看本帖隐藏内容请回复
</p><p>&nbsp;</p><br/>
[此贴子已经被作者于2008-5-29 12:32:57编辑过]
 楼主| 发表于 2008-5-29 12:32 | 显示全部楼层

<p>测试代码:</p><p><br/>Sub test()<br/>Dim str, str1, str2 As String<br/>Dim j%<br/>&nbsp;&nbsp;&nbsp; str = InputBox("请输入级档", "查询", "27-1")<br/>&nbsp;&nbsp;&nbsp; j = InStr(1, str, "-", vbTextCompare)<br/>&nbsp;&nbsp;&nbsp; str1 = Left(str, j - 1)<br/>&nbsp;&nbsp;&nbsp; str2 = Right(str, Len(str) - j)<br/>&nbsp;&nbsp;&nbsp; If 级别工资(str1, str2) &lt;&gt; 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox str1 &amp; "级" &amp; str2 &amp; "档的级别工资是:" &amp; 级别工资(str1, str2) &amp; "元。", 0 + 64, "恭喜发财&nbsp;&nbsp; ^_^"<br/>&nbsp;&nbsp;&nbsp; End If<br/>End Sub</p><p><br/></p>不足之处,请大家修改完善!
[此贴子已经被作者于2008-5-29 12:32:25编辑过]
回复

使用道具 举报

发表于 2008-5-29 12:34 | 显示全部楼层

可能有用
回复

使用道具 举报

发表于 2008-5-29 15:23 | 显示全部楼层

xuexi
回复

使用道具 举报

发表于 2008-5-29 15:24 | 显示全部楼层

<p>看看</p>
回复

使用道具 举报

发表于 2008-5-29 18:08 | 显示全部楼层

<div style="MARGIN-TOP: 10px; FONT-SIZE: 10pt; MIN-HEIGHT: 200px; WORD-BREAK: break-all; TEXT-INDENT: 24px; LINE-HEIGHT: normal; WORD-WRAP: break-word;"><p>看看</p><br/></div>
回复

使用道具 举报

发表于 2008-5-29 19:13 | 显示全部楼层

<p>看看加多少钱。</p>
回复

使用道具 举报

发表于 2008-5-29 19:18 | 显示全部楼层

<p>一个小小的提议,调用代码里使用了两次自定义函数的调用,建议先赋值。</p><p>If 级别工资(str1, str2) &lt;&gt; 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox str1 &amp; "级" &amp; str2 &amp; "档的级别工资是:" &amp; 级别工资(str1, str2) &amp; "元。", 0 + 64, "恭喜发财&nbsp;&nbsp; ^_^"<br/>&nbsp;&nbsp;&nbsp; End If<br/></p><p>题外话,从这个级别的数目来看就可以知道官僚系统的复杂性了。</p>
回复

使用道具 举报

发表于 2008-5-29 19:47 | 显示全部楼层

谢谢交流,先下载看看,学习了。
回复

使用道具 举报

发表于 2008-5-29 19:53 | 显示全部楼层

<p>学习学习</p>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-4-26 06:22 , Processed in 0.259801 second(s), 9 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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