VBA not selecting worksheet with titles
Try...
Sub ConsolidateHoldings2() Dim wks As Worksheet Sheets("Master").Cells.Clear For Each wks In ActiveWorkbook.Worksheets If UCase$(Right(wks.Name, 11)) = "TESTING.COM" Then With wks .Range("F2") = "Hi" .Range("F4") = "Please review the data on the left" .Range("F6") = "If this is incorrect, please advise!" .Range("F8") = "Thanks" End With 'wks End If Next 'wks End Sub 'ConsolidateHoldings2 -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Hi Garry,
Thats perfect. Even better than I had originally planned. Thank you so much. Pri Quote:
|
VBA not selecting worksheet with titles
You're welcome! Always glad to help...
-- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
All times are GMT +1. The time now is 09:06 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com