Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Trouble with worksheet_calculate

Thanks for your help in advance. I have searched through quite a bit
of posts and have found some very helpful information that I have
incorporated into my spreadsheet.

However, I have recently encountered some problems.

I have a workbook I created in order to quote manufacturing costs. On
the first tab (worksheet) I have a drop down menu that a customer
contact (address, phone numbers, etc.) is selected. A table/named
range and cell link all set up to function/drive the drop down
selections. I finally got worksheet_calculate to fire a macro to go
down and copy and then paste the customer contact information back up
in the address area thus reducing customer contact entry to one
click/selection from the drop down. No problems here. But, when I
was finishing up some additional formatting and programming, I had to
copy/insert a worksheet. Then it happened. My macro fired on the
newly copied sheet and wiped out some important cells.

With Excel, inserting a copied sheet is highly flexible and important
for my department to use on the fly, but we are at risk of forgetting
to "fix" the cells that get wiped out when inserting a copied sheet.

Here is the code I setup:

'Private Sub Worksheet_Calculate()
'If Range("$b$108") < 78 Then
' Application.Run "Get_Customer_Address"
'Else
' If Range("b$108") = 78 Then
' Application.Run "Get_Customer_Address"
' End If
'End If
'End Sub

B108 is the link cell for the drop down. Under 78 is a selection from
the list. Over 78 is the blank-out selection for the drop down. Not
even sure if I need this.

Please advise if there is another way I can set this up in order to
avoid the hassle with a copied sheet. Thanks again!!
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
worksheet_calculate code Jase Excel Discussion (Misc queries) 1 October 29th 08 08:17 PM
worksheet_calculate enyaw Excel Discussion (Misc queries) 2 January 26th 07 01:16 PM
worksheet_calculate enyaw Excel Discussion (Misc queries) 0 January 26th 07 08:14 AM
Infinite loop using Worksheet_Calculate Parker Excel Discussion (Misc queries) 2 November 3rd 06 12:25 PM
worksheet_calculate **help** tommyboy Excel Programming 2 June 29th 04 08:33 AM


All times are GMT +1. The time now is 03:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"