Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to add the contents of a number of cells from a list into a
text/message box. The exact location of the cells in the list varies. For example: if A1=10, then content in cells b10 and c10 should be displayed and if A1=3 then content in cells b3 and c3 to be displayed, etc... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try the below code
Sub Macro() Dim intTemp As Integer intTemp = Range("A1") If IsNumeric(intTemp) Then _ MsgBox Range("B" & intTemp) & " " & Range("C" & intTemp) End Sub If this post helps click Yes --------------- Jacob Skaria "JanT" wrote: I would like to add the contents of a number of cells from a list into a text/message box. The exact location of the cells in the list varies. For example: if A1=10, then content in cells b10 and c10 should be displayed and if A1=3 then content in cells b3 and c3 to be displayed, etc... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Incorpoarting cell contents into a message box | Excel Discussion (Misc queries) | |||
Cell contents check and prompt out message (By using Macro) | Excel Programming | |||
Display contents of cell in another cell as part of text string? | New Users to Excel | |||
Another cell formatting dependent on cell contents question / message box popup? | Excel Programming | |||
Cell only shows link in text, not contents of reference cell | New Users to Excel |