Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Variables in VB Code

I'm trying to get a macro to check the contents of a field- then filter a
columb on another sheet based on that content e.g
On one sheet "x" appears- this being variable- then goes to another sheet,
to a defined columb and filters on "*x*"

Any ideas?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Variables in VB Code

turn on the macro recorder. Filter your data - use a custom criteria
contains.

Now turn off the recorder

Look at the recorded code. Change the criteria to get its value from the
appropriate cell and hard code in the sheet name.

--
Regards,
Tom Ogilvy

"David M" wrote in message
...
I'm trying to get a macro to check the contents of a field- then filter a
columb on another sheet based on that content e.g
On one sheet "x" appears- this being variable- then goes to another sheet,
to a defined columb and filters on "*x*"

Any ideas?

Thanks in advance.



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
Declare variables to a code? Pas Excel Discussion (Misc queries) 6 April 10th 10 01:14 PM
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Pass Variables into Form's code Stuart[_5_] Excel Programming 3 August 23rd 03 04:55 AM


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