Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default userform Max value in Column A

I am setting up a userform with numerous textboxes.
I want to set 1 of the textboxes to always display the MAX value in Column A
in a particular sheet within the workbook.
How would i code this?

I want it to be in the Userform Activate event.
I have tried something like:


Private Sub UserForm_Activate()
TextBox4.Value = Sheets("Data Sheet for Inspections").MAX(0, x).Value
End Sub

But it no working....


Any idea's


Corey....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default userform Max value in Column A

Hi,

In any cell create the Max function formula then set the text value using
the value of the cell with Max() in it.

--

Rod Gill

"Corey" wrote in message
...
I am setting up a userform with numerous textboxes.
I want to set 1 of the textboxes to always display the MAX value in Column
A in a particular sheet within the workbook.
How would i code this?

I want it to be in the Userform Activate event.
I have tried something like:


Private Sub UserForm_Activate()
TextBox4.Value = Sheets("Data Sheet for Inspections").MAX(0, x).Value
End Sub

But it no working....


Any idea's


Corey....



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default userform Max value in Column A

Private Sub UserForm_Activate()
TextBox4.Value _
= application.max(Sheets("Data Sheet for Inspections").range("a:A"))
End Sub

Corey wrote:

I am setting up a userform with numerous textboxes.
I want to set 1 of the textboxes to always display the MAX value in Column A
in a particular sheet within the workbook.
How would i code this?

I want it to be in the Userform Activate event.
I have tried something like:

Private Sub UserForm_Activate()
TextBox4.Value = Sheets("Data Sheet for Inspections").MAX(0, x).Value
End Sub

But it no working....

Any idea's

Corey....


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default userform Max value in Column A

Thank you Dave.
Perfect.
Was so slow, yet so far from it.


"Dave Peterson" wrote in message
...
Private Sub UserForm_Activate()
TextBox4.Value _
= application.max(Sheets("Data Sheet for Inspections").range("a:A"))
End Sub

Corey wrote:

I am setting up a userform with numerous textboxes.
I want to set 1 of the textboxes to always display the MAX value in
Column A
in a particular sheet within the workbook.
How would i code this?

I want it to be in the Userform Activate event.
I have tried something like:

Private Sub UserForm_Activate()
TextBox4.Value = Sheets("Data Sheet for Inspections").MAX(0, x).Value
End Sub

But it no working....

Any idea's

Corey....


--

Dave Peterson



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
Userform list for more than one column of data David Excel Programming 2 September 3rd 06 02:03 AM
Excel Vba -userform Table Column sarasa Excel Programming 1 June 11th 04 03:19 PM
Excel Vba Userform Tabular Column sarasa[_4_] Excel Programming 1 June 11th 04 03:08 PM
Filter column using criteria from a userform Eileen[_3_] Excel Programming 1 February 26th 04 02:16 AM
Output from a userform finding the right column. column HelpMe Excel Programming 1 February 10th 04 03:27 PM


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