Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamically Change Cell Contents From VB

I need to have the integer contents of a cell change automatically when the
string content of a different cell is equal to a specific string. Both cells
presently utilize data validation (list) and the validation capability must
be maintained. The two cells have been given names, as well. For now, just
refer to them as "rngCellName1" and "rngCellName2".

Also of importance, the following code is currently in use to insert twelve
different pictures into my worksheet -

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("rngPicNameBC1C1")) Is Nothing Then
InsertPicFromFileBC1C1 _
strFileLocBC1C1:=Range("rngPicLocationBC1C1").Valu e, _
rDestCellsBC1C1:=Range("rngPicDisplayCellsBC1C1"), _
blnFitInDestHeightBC1C1:=True, _
strPicNameBC1C1:="MyDVPicBC1C1"
End If

The code is replicated in twelve consecutive "IF Not" statements with simple
variable name changes representing the twelve different picture locations in
the worksheet. I don't know if this code would conflict with any new logic
designed to solve my problem.

Any solutions?
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
change cell link in combox box dynamically Kate Yang Excel Discussion (Misc queries) 2 August 30th 05 08:51 PM
change operating cells dynamically according to the value of a fixed cell Zuohong Excel Worksheet Functions 2 November 17th 04 08:11 AM
How to add a Combobox dynamically based on contents of some other cell? Abhinav[_2_] Excel Programming 1 May 13th 04 11:00 AM
Changing the contents of a cell... dynamically? Friendly Indián Excel Programming 14 February 4th 04 01:13 PM
I need to change the BG color of a cell dynamically Degobah Excel Programming 2 December 11th 03 05:04 PM


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