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


Thanks all.

I'm quite new to Excel, but I'm pretty familiar with Access and vba fo
Access

In Excel where can I add the code for function.

Thank

--
xca
-----------------------------------------------------------------------
xcao's Profile: http://www.excelforum.com/member.php...fo&userid=1453
View this thread: http://www.excelforum.com/showthread.php?threadid=26322

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Excel replace text.

Menu -- Tools - Macro - VB Editor

I hope that helps! Good luck, I have been working on the
same transition for the last few weeks. It's not to bad,
but there are a number of differences.

Kevin
-----Original Message-----

Thanks all.

I'm quite new to Excel, but I'm pretty familiar with

Access and vba for
Access

In Excel where can I add the code for function.

Thanks


--
xcao
----------------------------------------------------------

--------------
xcao's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=14538
View this thread:

http://www.excelforum.com/showthread...hreadid=263222

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Excel replace text.

xcao wrote ...

Thanks all.

I'm quite new to Excel, but I'm pretty familiar with Access and vba for
Access


In which case, you can do the CASE statement in the sql e.g.

SELECT
MyIntCol,
IIF(MyIntCol=4,'daily','')
& IIF(MyIntCol=8,'weekly','')
& IIF(MyIntCol=16,'monthly','')
AS frequency_text
FROM
MyTable
;

Alternatively,

SELECT
MyIntCol,
CHOOSE(yIntCol,
'','','','daily',
'','','','weekly',
'','','','',
'','','','monthly')
AS frequency_text
FROM
MyTable
;

Jamie.

--
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Excel replace text.

.... or even:

SELECT
MyIntCol,
SWITCH(
MyIntCol=4,'daily',
MyIntCol=8,'weekly',
MyIntCol=16,'monthly')
AS frequency_test
FROM
MyTable
;

Jamie.

--
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
Excel Text Replace Ken Excel Discussion (Misc queries) 4 July 17th 08 04:27 PM
Can I replace a ' at the beginning of a text cell using Replace Hilde Excel Discussion (Misc queries) 4 September 10th 07 06:22 PM
How do I search and replace text in a textbox in Excel? ToolQueen Excel Discussion (Misc queries) 2 July 7th 05 02:20 PM
Excel replace text. xcao[_3_] Excel Programming 0 September 24th 04 04:50 PM
Limitation of Find and Replace Text in Excel wolfteeth Excel Programming 1 September 17th 04 10:21 PM


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