Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Placeholder in find code

Hi,

Can I use a placeholder in code to execute a find statement?

My code currently looks like this;

Set rngFound = rngToSearch.find("G25KT")

Yet the 25 is a variable number so wanted to express it something like
this;

Set rngFound = rngToSearch.find("G"& 00 & "KT")

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Placeholder in find code

Try this:
Set rngFound = rngToSearch.find("G*KT")

Hth,
Merjet


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Placeholder in find code

Many thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Placeholder in find code


Set rngFound = rngToSearch.find("G"& Cstr(VarA) & "KT")

"keri" wrote:

Hi,

Can I use a placeholder in code to execute a find statement?

My code currently looks like this;

Set rngFound = rngToSearch.find("G25KT")

Yet the 25 is a variable number so wanted to express it something like
this;

Set rngFound = rngToSearch.find("G"& 00 & "KT")


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
lookup and placeholder function Cam Excel Worksheet Functions 2 May 19th 10 03:03 PM
Removing Placeholder Values Mtabaruka Excel Discussion (Misc queries) 2 March 29th 07 01:54 PM
delete row of text with 3 macros & [placeholder] Janis Excel Programming 0 August 18th 06 08:26 PM
"Show Placeholder" feature in options/view doesnt work No Name Excel Programming 0 January 6th 06 02:43 AM
"Show Placeholder" feature in options/view doesnt work No Name Excel Programming 0 January 6th 06 02:43 AM


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