LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default string output needed

Hi,
Using XL2K, I have a Worksheet_Change event that accepts user input for 1
or 2 check amts. The user is then prompted for store name(s), Payee1 and
*maybe* Payee2 via either 1 or 2 userforms. I need Payee1 and *maybe*
Payee2 placed as a single line to the right of the check amt(s).
Currently I use the following:

Target.Offset(0, 1) = Payee1 + " " + Payee2

This way if there is only 1 payee, Payee2 won't appear. That's what I want,
except instead of using spaces, I want Payee1 and Payee2 (if there is one)
separated by a '/'. If there is only 1 payee, I don't want the '/' to
appear.

What code will accomplish what I want?

--
David
 
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
putting a string from one cell in the formula of another -- indirect needed? [email protected] Excel Worksheet Functions 3 January 23rd 06 07:55 PM
to search for a string and affect data if it finds the string? Shwaman Excel Worksheet Functions 1 January 11th 06 12:56 AM
"Unable to Open File" - excel output of Datagrid <-help needed Steve Chatham[_2_] Excel Programming 0 February 25th 04 07:59 PM
Getting output from an excel output back to cscript.. J S Excel Programming 0 January 21st 04 09:06 PM
Create a formula into a String then assign string to a cell Myrna Larson[_2_] Excel Programming 6 August 23rd 03 09:42 PM


All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"