Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Finding a Time value

I have a macro that goes to a cell and sets a var to the cells value. This
value is a time such as 6:00, 8:00, 20:00, etc.
I then use the application goto reference:=Mon_times to select a set of
cells in a row. This set of cells starts with a value of 4:00 and ends with
a cell containging the value of 3:00. It's 24 cells with each cell containg
an hour value in a 24 hour clock.
When I attempt to issue a Cell.find(what:=start_time).activate I get an
error, "Run-time error '91':" Object vairable or with block variable not set.
But I set the variable to the value of a cell prior to making the goto call.
What am I missing herer?

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 109
Default Finding a Time value

you are missing the code. post your code and someone will probably
help you out.


On Feb 12, 2:51 pm, El Bee wrote:
I have a macro that goes to a cell and sets a var to the cells value. This
value is a time such as 6:00, 8:00, 20:00, etc.
I then use the application goto reference:=Mon_times to select a set of
cells in a row. This set of cells starts with a value of 4:00 and ends with
a cell containging the value of 3:00. It's 24 cells with each cell containg
an hour value in a 24 hour clock.
When I attempt to issue a Cell.find(what:=start_time).activate I get an
error, "Run-time error '91':" Object vairable or with block variable not set.
But I set the variable to the value of a cell prior to making the goto call.
What am I missing herer?

Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Finding a Time value

Here's a portion of the code:

Application.Goto Reference:="Mon_times" ' cells S2:AP2
Application.FindFormat.NumberFormat = "h:mm;@"
Selection.Find(What:=start_time, LookIn:=xlValues).Select 'I get the
error here



" wrote:

you are missing the code. post your code and someone will probably
help you out.


On Feb 12, 2:51 pm, El Bee wrote:
I have a macro that goes to a cell and sets a var to the cells value. This
value is a time such as 6:00, 8:00, 20:00, etc.
I then use the application goto reference:=Mon_times to select a set of
cells in a row. This set of cells starts with a value of 4:00 and ends with
a cell containging the value of 3:00. It's 24 cells with each cell containg
an hour value in a 24 hour clock.
When I attempt to issue a Cell.find(what:=start_time).activate I get an
error, "Run-time error '91':" Object vairable or with block variable not set.
But I set the variable to the value of a cell prior to making the goto call.
What am I missing herer?

Thanks in advance.




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
Finding Time that Max Occured RV Excel Discussion (Misc queries) 3 August 18th 06 04:25 PM
Finding the average time Gadgets Excel Worksheet Functions 5 July 31st 06 09:06 PM
Finding File Creation Time bassoonboy Excel Discussion (Misc queries) 0 July 17th 06 03:44 PM
Finding concurrent events from a list with a start and an end time Dave at tch Excel Discussion (Misc queries) 3 January 13th 06 04:00 PM
Finding Time difference John Harris Excel Worksheet Functions 2 May 13th 05 11:32 PM


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