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


Is there anyway to do the following...

Say I want to replace this

(name)

in every sheet with txtFirstName.value

for example

txtFirstName.value = "Bob"

So every sheet that has (name) in part of the cell will be replace
with Bob.

But when the worksheet closes put (name) back in and take out Bob.

thanks for any help

Jos

--
jhahe
-----------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...fo&userid=2359
View this thread: http://www.excelforum.com/showthread.php?threadid=56679

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default placeholders

alter your entries to formulas similar to this

="this is text " & Sheet3!A1 & " more text"

then in sheet3!A1 put what you want to display: (Name) or BoB

Sheet3 can be hidden if you wish.

--
Regards,
Tom Ogilvy



"jhahes" wrote:


Is there anyway to do the following...

Say I want to replace this

(name)

in every sheet with txtFirstName.value

for example

txtFirstName.value = "Bob"

So every sheet that has (name) in part of the cell will be replaced
with Bob.

But when the worksheet closes put (name) back in and take out Bob.

thanks for any help

Josh


--
jhahes
------------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=566792


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default placeholders


Hi Tom,

thanks for the solution....it works....however

on some of the cells - it has errors because the text is more than 255
characters and it says formula is too long....Is there an easy way to
get around this?


thanks

Josh


--
jhahes
------------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=566792

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default placeholders

Well, you could put sections of that long text on cells on that Sheet3 and
then cocatenate them in

=Sheet3!A1 & " " & sheet3!A2 & " " & Sheet3!A3

perhaps.

or you can go back to your original and try doing Edit=Replace
What (Name)
With Bob

(with the macro recorder on if you want code).

It seems to me that replace also has problems with long text strings - as I
recall.

--
Regards,
Tom Ogilvy


"jhahes" wrote in
message ...

Hi Tom,

thanks for the solution....it works....however

on some of the cells - it has errors because the text is more than 255
characters and it says formula is too long....Is there an easy way to
get around this?


thanks

Josh


--
jhahes
------------------------------------------------------------------------
jhahes's Profile:
http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=566792



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default placeholders


Thanks, tom for helping me... i will try one of those


--
jhahes
------------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=566792

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
Fill/Expand Selection adding placeholders to Decimals awalker Excel Discussion (Misc queries) 3 April 26th 10 06:19 PM
Can I use placeholders for constanst array using workday function? penGuin_1 Excel Worksheet Functions 4 December 10th 08 08:26 PM
SUMPRODUCT with PLACEHOLDERS? titushanke Excel Discussion (Misc queries) 5 March 6th 06 01:17 PM
"Show Placeholders" in options/view menu does'nt work. Excel Discussion (Misc queries) 0 January 5th 06 12:51 AM
Zero Placeholders in number cell B. Parizo Excel Discussion (Misc queries) 3 September 15th 05 01:25 PM


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