LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Zoom a range without actually selecting it


VBA newbie here (but learning quickly)

I am trying to zoom to a set of columns. (say G:M)

I am aware of:

Columns ("G:M").Select
ActiveWindow.Zoom = True

But I am trying to do it without actually using the 'select' command.
Let me explain:

I have a worksheet that has the Worksheet_SelectionChange function and
I am trying to have most of my code execute without having to disable
Application.EnableEvents every time I want to do something. I am able
to change cell vaues and properties without actually 'selecting' the
cells i.e. :

Range ("H9").Value = "hello"

or

Range("H9").Interior.ColorIndex = 8

If I use the Select command then one of my functions forces the acive
cell to column "A" and overrides the zoom area that I want. If Anyone
can tell me how to zoom to a set of columns without having to disable
events first it would be greatly appreciated.

Regards,

Jim


--
Staging2000
------------------------------------------------------------------------
Staging2000's Profile: http://www.excelforum.com/member.php...o&userid=31714
View this thread: http://www.excelforum.com/showthread...hreadid=514168

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help! Print Preview Zoom is Grayed Out...Doesn't zoom. PK Excel Discussion (Misc queries) 0 July 20th 09 03:33 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
prevent range names showing at low zoom values in excel djbz Excel Discussion (Misc queries) 0 April 5th 06 03:12 PM
Help please in selecting range dependent on another range MickJJ Excel Programming 2 January 10th 05 12:01 PM
zoom to a range of cells. Dave B[_6_] Excel Programming 2 November 25th 03 07:51 PM


All times are GMT +1. The time now is 12:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"