乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 122|回复: 6

VBA in Excel

[复制链接]
057

1

主题

1

帖子

1

银币

初来乍到

Rank: 1

铜币
5
发表于 2008-1-23 09:18:05 | 显示全部楼层 |阅读模式
I have never written anything in VBA for excel.  that being said, I could use some help with a function to purge a spreadsheet.  Any takers?
回复

使用道具 举报

0

主题

6

帖子

2

银币

初来乍到

Rank: 1

铜币
6
发表于 2008-1-23 09:22:56 | 显示全部楼层

Huh?  Purge as in like, selecting everything and pressing the DEL key??
回复

使用道具 举报

0

主题

6

帖子

5

银币

初来乍到

Rank: 1

铜币
7
发表于 2008-1-23 09:26:56 | 显示全部楼层
Yes  hahaha,
OK no, I need to search Column A for each number, like 11815 in above example, then go over to the H column and compare the $$ amount to the one below.  Delete the row which is  comparison is pretty easy.  Deleting the row is the next challenge.  I also thought about using N (integer) to keep up with where I am row.count wise
Edit: Attached XLS file
回复

使用道具 举报

0

主题

7

帖子

6

银币

初来乍到

Rank: 1

铜币
9
发表于 2008-1-23 09:30:41 | 显示全部楼层
Sorry it took so long, I didn't know you couldn't post xls file directly.
回复

使用道具 举报

0

主题

8

帖子

4

银币

初来乍到

Rank: 1

铜币
9
发表于 2008-1-23 09:31:31 | 显示全部楼层
Yes  hahaha,
OK no, I need to search Column A for each number, like 11815 in above example, then go over to the H column and compare the $$ amount to the one below.  Delete the row which is  y then
rows.delete yadda
回复

使用道具 举报

0

主题

14

帖子

5

银币

初来乍到

Rank: 1

铜币
14
发表于 2008-1-23 09:37:14 | 显示全部楼层
First hard code, then modify to allow for variables.
回复

使用道具 举报

0

主题

6

帖子

4

银币

初来乍到

Rank: 1

铜币
7
发表于 2008-1-23 09:40:53 | 显示全部楼层
ok, now I see where your going.  The problem is I know very little about VBA in excel.  How do I grab a row?  Im thinking there should be an activerow, but I haven't found it yet.  Once I figure out how to grab a row, the > logic should be pretty straightforward
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-7-5 07:50 , Processed in 0.302820 second(s), 66 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表