Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2011, 04:23 AM
Catalin.B Catalin.B is offline AND/OR/NOT-search Windows Vista AND/OR/NOT-search Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Quote:
Originally Posted by joblo108 View Post
Hi



The problem is in the line

MyKeys = Sheets("Keywords").Range("A2:A" & Sheets("Keywords").Cells(Rows.Count, 1).End(xlUp).Row)

of the macro.

How should I change it to conform with my spreadsheet?

Thanks for your help!

/Johan
Make sure you have a sheet named Keywords, which has your keywords in column A starting from cell A2
This part of the code assumes that your data to evaluate is in Sheet1; if not, rename worksheet as Sheet1, or type in this part of the code the name of your sheet with data; this code assumes that data range is column C; if not, change the column letter...
Code:
With Sheets("Sheet1")
  For Each c In .Range("C1", .Range("C" & Rows.Count).End(xlUp))
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
AND/OR/NOT-search Search Function Rick203 Outlook 1 08-29-2011 11:23 PM
Instant Search's "Display search results as I type when possible" with Exchange lwc Outlook 0 06-01-2011 01:56 AM
Search for an attachment Pryach Outlook 0 06-15-2010 09:36 AM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM
Wildcard search help. Kempston Word 0 11-13-2009 03:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft