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

Hello there,

I am currently in the process of setting up a stock contol spreadsheet
Each item of stock is issued with a particular code. Is there anywa
that I can programme Excel to store information on a particular code.
That is, if I were to type the code AFS341 in a cell, I would like th
stock description to be some how nested in the cell so that if a use
wanted to find out the stock description, they could do someting lik
double click on the code to reveal the nested description. I hope thi
makes sense to you.

Many thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Nesting information

Here is a simple routine that can be modified to do what
you want. You will need to set up a lookup table for the
VLOOKUP function somewhere in your workbook (I am using
the named range "LookupRange" in the example) - the lookup
range should be a sorted 2-column list with your codes in
the first column and the corresponding descriptions in the
2nd column.

Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As
Object, ByVal Target As Range, Cancel As Boolean)

Dim ShowMe As Variant

ShowMe = WorksheetFunction.VLookup(Target.Value, Sheets
("Sheet1").Range("LookupRange"), 2, False)

MsgBox Target.Value & ": " & ShowMe

End Sub

-----Original Message-----
Hello there,

I am currently in the process of setting up a stock

contol spreadsheet.
Each item of stock is issued with a particular code. Is

there anyway
that I can programme Excel to store information on a

particular code.
That is, if I were to type the code AFS341 in a cell, I

would like the
stock description to be some how nested in the cell so

that if a user
wanted to find out the stock description, they could do

someting like
double click on the code to reveal the nested

description. I hope this
makes sense to you.

Many thanks


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Nesting information

Thank you 'K Dales'

Unfortunately I do not have any experience in programming Excel -
assume what you have posted is syntax?? Please could you offer a brie
explanation of where and how I can carry out your proposal.

Many thank

--
Message posted from http://www.ExcelForum.com

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
Pivot table cutting information of a part of the information ASR Excel Discussion (Misc queries) 1 November 5th 09 02:09 PM
Nesting Donna Excel Worksheet Functions 8 April 3rd 08 08:05 PM
OR Nesting? Karel Excel Discussion (Misc queries) 2 March 27th 08 03:52 AM
IF - Nesting... almost got it - need a bit of help AngelaG Excel Worksheet Functions 1 August 22nd 05 10:30 PM
nesting sum if and BMSpell Excel Worksheet Functions 2 January 20th 05 05:10 PM


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