Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to show the active cell after running a macro?


I have a macro that inserts rows and copies formulas on two worksheets,
and then selects the first cell into which the user should begin to
enter data.

The problem is that even though the right cell is selected for the
user, that cell is not necessarily visible on screen. (The screen may
be showing rows 70 to 100, when the relevant row is actually 500.)

Is there a way to "find" the active cell? To make it so that Excel has
not only selected the active cell, but is actually showing it as well?


--
shellshock
------------------------------------------------------------------------
shellshock's Profile: http://www.excelforum.com/member.php...o&userid=24935
View this thread: http://www.excelforum.com/showthread...hreadid=391978

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to show the active cell after running a macro?


You can have it scroll to the row where the active cell is

ActiveWindow.ScrollRow = ActiveCell.Row

HTH


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=391978

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to show the active cell after running a macro?


That's exactly what I needed! :)

Thanks so much; I figured there had to be a way to scroll the window
but I just didn't know how to do it.


--
shellshock
------------------------------------------------------------------------
shellshock's Profile: http://www.excelforum.com/member.php...o&userid=24935
View this thread: http://www.excelforum.com/showthread...hreadid=391978

Reply
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
How to Show Macro is Running roadkill Excel Discussion (Misc queries) 4 April 12th 06 10:19 PM
Don't show sheet switches when running macro Ben Excel Programming 4 May 25th 05 02:10 PM
Only want color to show when cell is active riccck Excel Worksheet Functions 1 March 31st 05 10:38 PM
show messagen when running a macro? Markus Scheible[_2_] Excel Programming 7 February 2nd 05 12:00 PM
Active cell blinks for no reason while running inside of Citrix XP Ed Miller Excel Worksheet Functions 1 January 25th 05 04:53 PM


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

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

About Us

"It's about Microsoft Excel"