Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default getting macro on specific filled cell click

Hello, im hoping someone can help,

is there a way to create some code that will make any black filled cell in
the B colomn run a specific macro when it is clicked on. becuase i have used
this,

If Intersect(Target, Me.Range("b23,b71")) Is Nothing Then
'do nothing
Else
duplicator
End If

to get it to do it on certain cells, but the macro that runs inserts two
rows into the worksheet which then means the cells listed arent actually
relevant to their initial row no's. so it all goes out of sync. so if there
was a way it would only let the click -- macro happen on the black cells
then it cant go wrong!

Thanks,,

WK
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default getting macro on specific filled cell click

Consider assigning a Named Range in the worksheet and then testing Intersect
Target with that range.

The Named Range will adjust as rows/columns are added/deleted
--
Gary''s Student - gsnu200735


"bilbo+" wrote:

Hello, im hoping someone can help,

is there a way to create some code that will make any black filled cell in
the B colomn run a specific macro when it is clicked on. becuase i have used
this,

If Intersect(Target, Me.Range("b23,b71")) Is Nothing Then
'do nothing
Else
duplicator
End If

to get it to do it on certain cells, but the macro that runs inserts two
rows into the worksheet which then means the cells listed arent actually
relevant to their initial row no's. so it all goes out of sync. so if there
was a way it would only let the click -- macro happen on the black cells
then it cant go wrong!

Thanks,,

WK

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
MACRO: Catching only filled cell data sumit Excel Discussion (Misc queries) 1 November 24th 06 12:28 PM
click on cell takes you to specific sheet Ron Tarr Charts and Charting in Excel 2 May 8th 06 09:31 PM
Run Macro when cell is filled JackR Excel Discussion (Misc queries) 4 March 21st 06 11:26 PM
CELL IS BLANK BUT NEED IT FILLED WITH SPACES TO A SPECIFIC LENGTH CHARI Excel Worksheet Functions 4 August 30th 05 12:54 AM
CELL IS BLANK BUT NEED IT FILLED WITH SPACES TO A SPECIFIC LENGTH מיכאל (מיקי) אבידן Excel Worksheet Functions 0 August 29th 05 09:55 PM


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