is_utf8:0,
 
Search : in
By :

Finding insertion point in excel

Last answer on Jul 17, 2009 10:14:12 am BST challenged, on Jul 16, 2009 7:16:09 am BST 
 Report this message to moderators

Hello

here is a challenging one....

I am trying to automate a spreadsheet used for processing and compiling large amounts of data, with the outputs are always a range of data 5 columns wide, but of variable length. The range is selected and copied from a "processing" worksheet and pasted into a subsequent "outputs" worksheet. The outputs works sheet has 10 rows at the top occupied by data file information and formulas to act on the data being pasted.
Once a range or "block" of data has been inserted, the next selected block needs to be pasted adjacent to it (but separated by an empty column) ... an exact replication except that the input data is different.
This goes on until the the whole excel becomes filled with unique but identically formatted chunks of data.

What I really require is a macro that allows me to select a range from the first "processing worksheet" (I can do this bit) and then to recognise the first appropriate empty spot in the second "outputs" worksheet and paste it there (this has me stumped). These insertion points have fixed locations always separated by 7 cells/columns (ie: A:12, G:12, N:12, U:12 .... etc,etc), so I guess it is really a case of determining if the designated input cell is occupied by preexisting data ... with the option of either pasting (if it is empty) ... or moving across 7 cells (if it is full)

Many thanks for any help

Configuration: Mac OS X
Safari 525.28.3

Best answers for « finding insertion point in excel » in :
VBA: Finding Hdc in an Excel worksheet or UserForm Show VBA: Finding Hdc in an Excel worksheet or UserForm Here are two small examples on how to find Hdc in a worksheet: By clicking on Sheet1 the UserForm is displayed. Put the pointer on UF, hold the left mouse button down and drag the...
Excel tips : How to insert date in a cell Show Excel tips : How to insert date in a cell Below are some tips on how to insert date and time in an excel cell for a specific purpose:- To insert current date, press CTRL + ; in the chosen cell. To insert current time, press CTRL+...
To insert an image in the FAQ ShowTo insert an image in the FAQ Method Where to find images? Inserting screenshots can help to understand an explanation. Here is how to improve tips on Kioskea (FAQ). For this trick, we opted to use the site Imageshack.us. Note:...
Avoid duplicates in Excel ShowAvoid duplicates in Excel In order to avoid duplication when encoding in a column from an excel sheet: take the conditional format on the first cell under the headings (eg A2) choose the following formula:...
Inserting an animated gif in Excel ShowInserting an animated gif in Excel To insert an animated gif image in an Excel spreadsheet, you must insert the image into a control. To insert the control, go to the View menu/Toolbars/Control Toolbox Activate the first button Design...
Download Excel Viewer ShowExcel Viewer 2003 will allow you to open, view and print spreadsheet workbooks though you do not necessarily have to install Excel on your computer. Features: It will allow you to make a copy of the information found in Excel Viewer 2003 and...
Download Advanced Find&Replace for Excel ShowDescription This application is designed by Add-in Express LTD. Advanced Find & Replace is an add-on for Microsoft Excel. It allows you to run multiple searches for values, formulas and comments. The search results are displayed in a floating...

1

 Excelguru, on Jul 17, 2009 10:14:12 am BST

Hello challenged,

to recognise the first appropriate empty spot in the second "outputs" worksheet, use the end property of VBA as in
Range("B4").End(xlDown).Select where column B is contiguous

to find insertion points have fixed locations always separated by 7 cells/columns (ie: A:12, G:12, N:12, U:12 .... etc,etc) use offset property
Worksheets("Sheet1").Activate
ActiveCell.Offset(rowOffset:=3, columnOffset:=3).value=Yourvalue Winners are losers who got up and gave it one more try. -Dennis DeYoung
My Interests are financial Modelling and custom excel development.

Reply to Excelguru