Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default hot get a cell value in varable

excel does not support more than seven nested if statements and i have around
20 unique values on which bases i have to fill other filed . for this i want
to use case statement in visual basic but unable to get the cell value in a
variable if any other option
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default hot get a cell value in varable

you should first consider the data type.

i chose variant as it is most compatable


dim yourval as variant
yourval=range("a1") ---substitute a1 for the cell reference you want passed.


"mayank" wrote:

excel does not support more than seven nested if statements and i have around
20 unique values on which bases i have to fill other filed . for this i want
to use case statement in visual basic but unable to get the cell value in a
variable if any other option

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
How to create a lookup table with an added varable? GIZZMO Excel Worksheet Functions 3 April 6th 09 10:32 PM
effective rate, debt issue costs, loan interest with varable payme MDWGNO Excel Programming 1 August 27th 07 03:32 PM
SQL Query Destination as an array varable [email protected] Excel Programming 2 June 19th 06 07:31 PM
How can I assign a varable to equal an array? (it allready has a name) hamma_thrower Excel Programming 4 September 6th 05 03:09 PM
Range as varable Rod Taylor Excel Programming 2 July 28th 03 01:41 AM


All times are GMT +1. The time now is 04:35 PM.

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"