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


Select a text value from a list of 25 static text values based on a numeric
indicator in another cell, then place that text value in a third cell.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default VBA in Excel

Select a text value from a list of 25 static text values based on a
numeric
indicator in another cell, then place that text value in a third cell.


It this a command? Are you ordering us to do this? You might try putting in
a subject and writing a complete sentence.

Using the worksheet "Sheet1", the following code will return the Nth value
starting at Range A1 where N is in B1 and place that value in cell C1.

With Worksheets("Sheet1")
.Range("C1").Value = .Range("A1")(.Range("B1").Value) ' note periods
before Ranges
End With

--
Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group, 1998-2008
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
USA Central Time (GMT -6:00)



"Kevin" wrote in message
...

Select a text value from a list of 25 static text values based on a
numeric
indicator in another cell, then place that text value in a third cell.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 504
Default VBA in Excel

I apologize Chip, noob error...instructions said to be brief and I know you
folks are busy, so I didn't want to waste your time with too much verbiage.

I appreciate the help.

"Chip Pearson" wrote:

Select a text value from a list of 25 static text values based on a
numeric
indicator in another cell, then place that text value in a third cell.


It this a command? Are you ordering us to do this? You might try putting in
a subject and writing a complete sentence.

Using the worksheet "Sheet1", the following code will return the Nth value
starting at Range A1 where N is in B1 and place that value in cell C1.

With Worksheets("Sheet1")
.Range("C1").Value = .Range("A1")(.Range("B1").Value) ' note periods
before Ranges
End With

--
Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group, 1998-2008
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
USA Central Time (GMT -6:00)



"Kevin" wrote in message
...

Select a text value from a list of 25 static text values based on a
numeric
indicator in another cell, then place that text value in a third cell.


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



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