LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Selecting Precedents On Other Sheet Via Macro

The following macro selects precedents only if on the current sheet.

Sub Macro1()
ActiveCell.Precedents.Select
End Sub

If the cell contains reference to some other sheet in the same book the
error 1004 stating "No Cells Found" pops up.

Any suggestion?
 
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
Selecting sheet with VB RobN[_2_] Excel Discussion (Misc queries) 14 May 23rd 08 01:36 AM
Range Address of Precedents and Dependents from other sheet. Mr. DP Excel Discussion (Misc queries) 0 November 30th 06 06:34 AM
Selecting data from database sheet Duane Excel Discussion (Misc queries) 0 May 8th 06 10:30 PM
Selecting Last Sheet Bonbon Excel Worksheet Functions 17 February 22nd 06 04:16 PM
Selecting a sheet from a drop down box Caveman Excel Discussion (Misc queries) 6 February 18th 06 11:09 PM


All times are GMT +1. The time now is 10:15 AM.

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"