Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default How to reference a cell into a Dialog Box ?

Hi,
In the code below I have included a Dialog Box named CriteriaReached to show
if cell g6 < h6 < k6.

My question being. Is it possible to reference a cell with text in it into
the Box?

Sub CheckVolumeRise1()
If Range("g6") < Range("h6") < Range("k6") Then
CriteriaReached.Show
End If
End Sub

Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default How to reference a cell into a Dialog Box ?

Try

Dim varRange As Variant
varRange = Application.InputBox("Select cell", Type:=8)

-----------------
The code should be
If Range("g6") < Range("h6") And Range("h6") < Range("k6") Then

End If

--
Jacob


"Rob" wrote:

Hi,
In the code below I have included a Dialog Box named CriteriaReached to show
if cell g6 < h6 < k6.

My question being. Is it possible to reference a cell with text in it into
the Box?

Sub CheckVolumeRise1()
If Range("g6") < Range("h6") < Range("k6") Then
CriteriaReached.Show
End If
End Sub

Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default How to reference a cell into a Dialog Box ?

Thanks Jacob.

"Jacob Skaria" wrote:

Try

Dim varRange As Variant
varRange = Application.InputBox("Select cell", Type:=8)

-----------------
The code should be
If Range("g6") < Range("h6") And Range("h6") < Range("k6") Then

End If

--
Jacob


"Rob" wrote:

Hi,
In the code below I have included a Dialog Box named CriteriaReached to show
if cell g6 < h6 < k6.

My question being. Is it possible to reference a cell with text in it into
the Box?

Sub CheckVolumeRise1()
If Range("g6") < Range("h6") < Range("k6") Then
CriteriaReached.Show
End If
End Sub

Thank you.

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
reference to another sheet not in wkbk brings up dialog box Valerie Excel Programming 2 February 4th 08 04:19 PM
Common Dialog Control Reference problem Jim[_7_] Excel Programming 0 January 8th 08 08:54 PM
Reference dialog box SG Excel Programming 1 January 16th 06 09:18 AM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM
Problem with =sum(offset(cell reference,w,x,y,z). I want cell reference to be variable [email protected] Excel Worksheet Functions 2 December 11th 04 12:00 AM


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