PC Review


Reply
Thread Tools Rate Thread

Adding/deleting ranges and renaming accordingly

 
 
Michael Siegel
Guest
Posts: n/a
 
      10th Apr 2007
Hi.

I have a range (A1:J10) named "Person_01". Cell J1 contains a hyperlink
called "Add_Person" with a label that says "Add a new person".

When the user clicks the hyperlink, "Person_01" should be copied and
inserted as "Person_02" right below "Person_01". The hyperlink at the
bottom of "Person_01" should change to "Delete this person" and the
hyperlink at the bottom of "Person_02" should still say "Add a new
person".

As new ranges are added, only the most current range will contain the
"Add a new person" hyperlink, with all former ranges containing the
"Delete this person" hyperlink.

I've already written code to add/delete ranges, but I'm having a hard
time tracking the range names as a "stack" so that I can name
new/existing ranges properly upon addition/deletion of a person.

Can somebody help me conceptualize this issue? I'm very new to VBA.

Thanks.
Michael

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
renaming named ranges AndreasHermle Microsoft Excel Programming 4 4th Apr 2011 09:19 PM
Excel {2007} Named Ranges: Renaming, Deleting etc... DemonTraitor Microsoft Excel Misc 4 27th Nov 2007 12:06 PM
Updating Ranges or References in Code when Adding or Deleting Rows Arnold Microsoft Excel Programming 1 6th Feb 2007 01:23 PM
Systematically Renaming Ranges =?Utf-8?B?TVdT?= Microsoft Excel Programming 3 16th Feb 2006 03:11 PM
Renaming adding and deleting directory alanford Microsoft Excel Programming 2 16th Feb 2005 11:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 AM.