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

Hi,

I was wondering if there is a macro that can highlight
blank cells in the range B9:G31, maybe a color, to
identify to the user that information is required to be
entered into that cell. Or any method that would seem
appropriate?

One other question, I have a feeling this is not possible
but anyway, here goes, is it possible to create a routine
for a command button that would prompt the user to enter
a query name(achieved when you right click on a query and
then open Data Range Properties, this is the actual name
of the iqy file)and when the user enters the name, he can
then delete it from it's place on the spreadsheet(in my
case it would be somewhere in sheet 2) and the iqy file
stored in the Microsoft/Queries default folder? Maybe you
know another way of handling it. Either way, I would be
truly grateful!!!! Thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Highlight blank cells

Rhonda

will this do:

Range("B9:G31").SpecialCells(xlCellTypeBlanks).Sel ect

Regards

Trevor


"Rhonda" wrote in message
...
Hi,

I was wondering if there is a macro that can highlight
blank cells in the range B9:G31, maybe a color, to
identify to the user that information is required to be
entered into that cell. Or any method that would seem
appropriate?

One other question, I have a feeling this is not possible
but anyway, here goes, is it possible to create a routine
for a command button that would prompt the user to enter
a query name(achieved when you right click on a query and
then open Data Range Properties, this is the actual name
of the iqy file)and when the user enters the name, he can
then delete it from it's place on the spreadsheet(in my
case it would be somewhere in sheet 2) and the iqy file
stored in the Microsoft/Queries default folder? Maybe you
know another way of handling it. Either way, I would be
truly grateful!!!! Thanks for your help!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Highlight blank cells

Hi Trevor,

I placed the line of code in the This Workbook, Open
procedure but it doesn't work!! Maybe I'm wrong with
doing that, I am not up on Excel programming!!!

Please advise.

Thanks,

Rhonda


-----Original Message-----
Rhonda

will this do:

Range("B9:G31").SpecialCells(xlCellTypeBlanks).Sel ect

Regards

Trevor


"Rhonda" wrote in

message
...
Hi,

I was wondering if there is a macro that can highlight
blank cells in the range B9:G31, maybe a color, to
identify to the user that information is required to be
entered into that cell. Or any method that would seem
appropriate?

One other question, I have a feeling this is not

possible
but anyway, here goes, is it possible to create a

routine
for a command button that would prompt the user to

enter
a query name(achieved when you right click on a query

and
then open Data Range Properties, this is the actual

name
of the iqy file)and when the user enters the name, he

can
then delete it from it's place on the spreadsheet(in my
case it would be somewhere in sheet 2) and the iqy file
stored in the Microsoft/Queries default folder? Maybe

you
know another way of handling it. Either way, I would be
truly grateful!!!! Thanks for your help!



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Highlight blank cells

Use Format=Conditional formatting

No reason to use code.

--
Regards,
Tom Ogilvy

"Rhonda" wrote in message
...
Hi,

I was wondering if there is a macro that can highlight
blank cells in the range B9:G31, maybe a color, to
identify to the user that information is required to be
entered into that cell. Or any method that would seem
appropriate?

One other question, I have a feeling this is not possible
but anyway, here goes, is it possible to create a routine
for a command button that would prompt the user to enter
a query name(achieved when you right click on a query and
then open Data Range Properties, this is the actual name
of the iqy file)and when the user enters the name, he can
then delete it from it's place on the spreadsheet(in my
case it would be somewhere in sheet 2) and the iqy file
stored in the Microsoft/Queries default folder? Maybe you
know another way of handling it. Either way, I would be
truly grateful!!!! Thanks for your help!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Highlight blank cells

Rhonda

you could put it an event, for example:

Private Sub Worksheet_Activate()
Range("B9:G31").SpecialCells(xlCellTypeBlanks).Sel ect
End Sub

This code could go in the sheet where the range of cells are. Select
another sheet and then go back to the original.

Or you could just have a subroutine in a general module and run it when
required (perhaps attached to a button)

Sub HighlightBlanks()
Range("B9:G31").SpecialCells(xlCellTypeBlanks).Sel ect
End Sub

As Tom has pointed out, you could do this with conditional formatting.

Regards

Trevor


"Rhonda" wrote in message
...
Hi Trevor,

I placed the line of code in the This Workbook, Open
procedure but it doesn't work!! Maybe I'm wrong with
doing that, I am not up on Excel programming!!!

Please advise.

Thanks,

Rhonda


-----Original Message-----
Rhonda

will this do:

Range("B9:G31").SpecialCells(xlCellTypeBlanks).Sel ect

Regards

Trevor


"Rhonda" wrote in

message
...
Hi,

I was wondering if there is a macro that can highlight
blank cells in the range B9:G31, maybe a color, to
identify to the user that information is required to be
entered into that cell. Or any method that would seem
appropriate?

One other question, I have a feeling this is not

possible
but anyway, here goes, is it possible to create a

routine
for a command button that would prompt the user to

enter
a query name(achieved when you right click on a query

and
then open Data Range Properties, this is the actual

name
of the iqy file)and when the user enters the name, he

can
then delete it from it's place on the spreadsheet(in my
case it would be somewhere in sheet 2) and the iqy file
stored in the Microsoft/Queries default folder? Maybe

you
know another way of handling it. Either way, I would be
truly grateful!!!! Thanks for your help!



.



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
conditional formatting:highlight row based on blank or non-blank c Nat Maxwell Excel Worksheet Functions 3 May 14th 23 07:43 PM
how to highlight more related cells if cell highlight Jon Excel Discussion (Misc queries) 5 December 21st 08 01:06 PM
Highlight cells where the last charcter in the cell is a blank Pat[_4_] Excel Worksheet Functions 5 February 27th 08 01:21 PM
conditional formatting:highlight row based on blank or non-blank c Nat Maxwell Excel Discussion (Misc queries) 2 November 30th 05 10:30 PM
Highlight cells with ctrl-click but only un-highlight one cell hagan Excel Discussion (Misc queries) 5 May 27th 05 06:45 PM


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