使用VBA定位Excel显示 [英] Positioning an Excel display using VBA

查看:63
本文介绍了使用VBA定位Excel显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Excel 2013中使用VBA.我想在活动工作表的左上角放置一个特定的单元格(例如"X25").我尝试从当前显示的区域中选择单元格.选择("ZZ200"),然后重新选择目标单元格.我似乎无法控制目标单元的位置.建议

Using VBA in Excel 2013. I would like to position the active worksheet with a specific cell (eg "X25") in the upper left corner. I have tried selecting cells off the currently displayed area, .Select ("ZZ200"), and then reselecting my target cell. I don't seem to be able to control where the target cell is positioned. Suggestions

推荐答案

尝试一下:

Application.Goto Range("X25"), Scroll:=True

本文提供了更多信息和选项,可能会对您有所帮助:

This article has more information and options that you might find helpful:

https://msdn.microsoft.com/en-us/library/office/ff839232.aspx

这篇关于使用VBA定位Excel显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆