Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default raltive cell ref conundrum

Hi,

I have a spreadsheet with 30 records in it. I would like a macro that
enables me to delete a record and then move all the others up. The
complicated part is that I do not want it to copy any cells below the 30
records. (I have other data here)

As an example if I am in record 1 (e.g. A1) and choose to delete it, the
macro moves (copies) cells A2:A30. If I am in record 2 and choose to delete
it, the macro moves (copies) cells A3:A30.

As you can see I need to use relative addressing for one part of the
range(A3) but not the lower limit (A30). Is this possible? If so how?

thanks

Lewis Brunton

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default raltive should be relative

Sorry

"Lewis Brunton" wrote:

Hi,

I have a spreadsheet with 30 records in it. I would like a macro that
enables me to delete a record and then move all the others up. The
complicated part is that I do not want it to copy any cells below the 30
records. (I have other data here)

As an example if I am in record 1 (e.g. A1) and choose to delete it, the
macro moves (copies) cells A2:A30. If I am in record 2 and choose to delete
it, the macro moves (copies) cells A3:A30.

As you can see I need to use relative addressing for one part of the
range(A3) but not the lower limit (A30). Is this possible? If so how?

thanks

Lewis Brunton

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default raltive should be relative

Excel's built-in Data Form will do exactly that. Read help on it. Basically,
to use the Form the records needs a header in the cell above the first
record. Select (highlight) the header and all the records and name that
range "Database". Whenever you select any cell in that range and from the
menubar select Data/Form, the form will pop up allowing you to modify your
records without moving anything below the records.
Mike F
"Lewis Brunton" wrote in message
...
Sorry

"Lewis Brunton" wrote:

Hi,

I have a spreadsheet with 30 records in it. I would like a macro that
enables me to delete a record and then move all the others up. The
complicated part is that I do not want it to copy any cells below the 30
records. (I have other data here)

As an example if I am in record 1 (e.g. A1) and choose to delete it, the
macro moves (copies) cells A2:A30. If I am in record 2 and choose to
delete
it, the macro moves (copies) cells A3:A30.

As you can see I need to use relative addressing for one part of the
range(A3) but not the lower limit (A30). Is this possible? If so how?

thanks

Lewis Brunton



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
INDIRECT with raltive name(s) Werner Rohrmoser Excel Worksheet Functions 0 April 9th 08 07:36 AM
Conundrum Saxman[_2_] Excel Discussion (Misc queries) 7 July 22nd 07 06:09 PM
VBA conundrum csi New Users to Excel 4 October 27th 05 08:02 PM
ISERROR Conundrum forumuser - ExcelForums.com Excel Worksheet Functions 1 August 10th 05 03:49 PM
Vlookup Conundrum Ladred Excel Programming 2 November 19th 03 05:42 PM


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