Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GMc GMc is offline
external usenet poster
 
Posts: 8
Default Marco code needed to find contents of cell a1 in entire workbook

Marco code needed to find contents of cell a1 in entire workbook and then go
to that cell.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Marco code needed to find contents of cell a1 in entire workbook

Sub findit()
Dim s1 As Worksheet, s As Worksheet
Dim r As Range, v As Variant
Set s1 = ActiveSheet
n = s1.Name
v = Range("A1").Value
For Each s In Worksheets
s.Activate
nn = s.Name
For Each r In ActiveSheet.UsedRange
If nn = n And r.Address = "$A$1" Then
Else
If r.Value = v Then
r.Select
Exit Sub
End If
End If
Next
Next
s1.Activate
End Sub
--
Gary''s Student - gsnu200843


"gmc" wrote:

Marco code needed to find contents of cell a1 in entire workbook and then go
to that cell.

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
copy entire contents worksheet into new workbook, link but editabl ellyk Excel Discussion (Misc queries) 0 May 12th 10 08:49 PM
Need a Marco to find and delete an entire column based on text sea Rockpaw Excel Programming 1 May 29th 08 08:12 AM
Issue with marco for entire workbook Mark G.[_2_] Excel Programming 8 February 3rd 08 08:09 AM
Find Cell Contents on Another Sheet in Workbook Jana[_3_] Excel Programming 5 September 22nd 05 08:38 PM
Clear contents of unprotected cells in entire workbook with a macr FinnGirl Excel Programming 1 June 29th 05 05:32 PM


All times are GMT +1. The time now is 09:33 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"