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

why not using

=CHAR(CODE("k")+2) - 'm'


Guido

HoloGuides
http://hologuides.com/programming/ExcelVBA


"Ten" schrieb im Newsbeitrag
...
Hi,
this properbly is a really simple one, but I can't seem to
work it out.

I have a variable with a charachter, say "k". Then I want
to get the Next (or Second Next etc) charachter to this
one, that will be "l" (or "m" etc), and save this into an
other variable.

I thgought about something like, but obviously dosen't
work:
Dim c1
c1 = "k"
Dim c2
c2 = c1.Next()



  #2   Report Post  
Posted to microsoft.public.excel.programming
Ten Ten is offline
external usenet poster
 
Posts: 9
Default Next Charachter

Thanks,however, had to try
= Chr((Asc("k") + 1))

-----Original Message-----
why not using

=CHAR(CODE("k")+2) - 'm'


Guido

HoloGuides
http://hologuides.com/programming/ExcelVBA


"Ten" schrieb im Newsbeitrag
...
Hi,
this properbly is a really simple one, but I can't seem

to
work it out.

I have a variable with a charachter, say "k". Then I

want
to get the Next (or Second Next etc) charachter to this
one, that will be "l" (or "m" etc), and save this into

an
other variable.

I thgought about something like, but obviously dosen't
work:
Dim c1
c1 = "k"
Dim c2
c2 = c1.Next()



.

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
drop-list with different colors for the same charachter coronettan Excel Worksheet Functions 4 November 28th 07 03:57 PM
Ignoring charachter data with Product function Stan Altshuller Excel Worksheet Functions 2 December 8th 04 02:27 PM
Next Charachter Shunt Excel Programming 0 August 7th 03 01:02 PM


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