Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Line of code causing a beeping sound

I have a line of code that I am using in VB. Not the line of code is
actually VBA code being used in VB (via Visual Studio 2008 Express). It is
giving me a beeping noise. Its the line " .ShowDependents()". Why would this
be happening?

With rng
If .DirectDependents Is Nothing Then
.ShowDependents()
End with

Thanks

EM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Line of code causing a beeping sound

If DirectDependents Is Nothing, then you are probably hearing beep when the
error message pops up to tell you that there are no dependents for that cell.
Maybe you meant to write If Not DirectDependents Is Nothing Then....

"ExcelMonkey" wrote:

I have a line of code that I am using in VB. Not the line of code is
actually VBA code being used in VB (via Visual Studio 2008 Express). It is
giving me a beeping noise. Its the line " .ShowDependents()". Why would this
be happening?

With rng
If .DirectDependents Is Nothing Then
.ShowDependents()
End with

Thanks

EM

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Line of code causing a beeping sound

Thanks. Will look into it and write back.

EM

"JLGWhiz" wrote:

If DirectDependents Is Nothing, then you are probably hearing beep when the
error message pops up to tell you that there are no dependents for that cell.
Maybe you meant to write If Not DirectDependents Is Nothing Then....

"ExcelMonkey" wrote:

I have a line of code that I am using in VB. Not the line of code is
actually VBA code being used in VB (via Visual Studio 2008 Express). It is
giving me a beeping noise. Its the line " .ShowDependents()". Why would this
be happening?

With rng
If .DirectDependents Is Nothing Then
.ShowDependents()
End with

Thanks

EM

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
Problem with playing sound code EMoe[_39_] Excel Programming 3 July 6th 05 01:30 AM
Message box causing error in code Calligra[_2_] Excel Programming 6 July 9th 04 03:02 PM
Message box causing error in code Calligra Excel Programming 0 July 7th 04 02:46 PM
Workbooks.Open Beeping Problem Jim McLeod Excel Programming 0 May 24th 04 11:46 PM
Sound Code Bob Excel Programming 8 February 8th 04 08:22 PM


All times are GMT +1. The time now is 05:14 PM.

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"