PC Review


Reply
Thread Tools Rate Thread

Ctrl+F Find by value

 
 
swtupr
Guest
Posts: n/a
 
      22nd Dec 2008
1. When finding a text in Excel i want to look in Values instead of formulae.
Is there a way to do this without actually changing the options in the Find
and replace dialaog manually. Can this be done automatically through code?
2. Also, When i do Ctrl+F and find something, Excel finds the value in the
hidden columns also. I dont want to highlight the hidden columns when
searching. Any work around for this?


Thanks
 
Reply With Quote
 
 
 
 
Luke M
Guest
Posts: n/a
 
      22nd Dec 2008
Definied in the LookIn parameter

Cells.Find(What:="MyWord", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False _
, SearchFormat:=False).Activate

By searching values, XL disregards hidden columns, so solves 2 problems at
once.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"swtupr" wrote:

> 1. When finding a text in Excel i want to look in Values instead of formulae.
> Is there a way to do this without actually changing the options in the Find
> and replace dialaog manually. Can this be done automatically through code?
> 2. Also, When i do Ctrl+F and find something, Excel finds the value in the
> hidden columns also. I dont want to highlight the hidden columns when
> searching. Any work around for this?
>
>
> Thanks

 
Reply With Quote
 
swtupr
Guest
Posts: n/a
 
      22nd Dec 2008
Thanks for your quick reply Luke.
I want this behaviour of find when the user hits Ctrl+f. So where do i put
the code line which you specified. The find and replace dialog has to to
appear with the option look in Xlvalues.

Thanks

"Luke M" wrote:

> Definied in the LookIn parameter
>
> Cells.Find(What:="MyWord", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
> xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
> MatchCase:=False _
> , SearchFormat:=False).Activate
>
> By searching values, XL disregards hidden columns, so solves 2 problems at
> once.
> --
> Best Regards,
>
> Luke M
> *Remember to click "yes" if this post helped you!*
>
>
> "swtupr" wrote:
>
> > 1. When finding a text in Excel i want to look in Values instead of formulae.
> > Is there a way to do this without actually changing the options in the Find
> > and replace dialaog manually. Can this be done automatically through code?
> > 2. Also, When i do Ctrl+F and find something, Excel finds the value in the
> > hidden columns also. I dont want to highlight the hidden columns when
> > searching. Any work around for this?
> >
> >
> > Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to use Find (Ctrl-F) to find non-alpha Dave Peterson Microsoft Excel Discussion 1 23rd Oct 2010 01:03 PM
Re: How to use Find (Ctrl-F) to find non-alpha Charabeuh Microsoft Excel Discussion 0 23rd Oct 2010 05:20 AM
Can I set ctrl+s and ctrl+o window size & ctrl+o save as type defa Moonbarker Osbourne Windows XP General 1 18th Jan 2008 02:10 PM
Find (or Ctrl-F) command Kyle Microsoft Excel Misc 1 27th Nov 2007 07:12 AM
Ctrl Find debbiep@ywcaofjamestown.com Microsoft Access Forms 2 29th Sep 2007 04:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 AM.