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

i work with spreadsheets that i need certain formula's in
different cells in the same row based on 1 cell's data in
that row. then i need to lock those changed cells so they
cant be edited when the worksheet is protected. for
instance:

Quantity | Unit | Unit Price | Bid Ext |
----------------------------------------
LS $500.00
LS $1,500.00

so if unit = LS then quantity = 1, bid ext = ROUND
((quantity*unit price),2) and then have quantity, unit,
bid ext to be locked when the worksheet is protected. I
will have these LS units scattered thru ~150 rows in the
spreadsheet as well...

any help or direction would be appreciated. thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Macro Programming

Wouldn't it be better to put a formula in Bid Ext that is flexible enough to
return the right result depending on Unit? Like:

=IF(Unit="LS",Quantity*Unit Price,IF(Unit="LP",Quantity*Unit Price *
1.5,""))

This could actually be simplified but it is just an example.

--
Jim Rech
Excel MVP


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
Excel 2007-macro programming logic for data validation Derek Megyesi Excel Discussion (Misc queries) 2 February 1st 10 01:34 AM
Macro / Programming to lock cells Neil Holden Excel Discussion (Misc queries) 1 August 5th 09 01:21 PM
Macro Programming Question mtbcpa Excel Discussion (Misc queries) 2 November 26th 07 04:51 PM
Excel VBA/Macro programming for beginners sdebu_2000 New Users to Excel 9 September 6th 06 06:29 AM
Programming (macro) breaks due to translation RBeau Excel Discussion (Misc queries) 6 June 6th 06 09:41 PM


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