Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ZimBoy
 
Posts: n/a
Default Automatic Insert Row & Carriage Return


Hope someone can help me out with these 2 issues:

(1st Problem)

I have a spreadsheet that in one section has Part Numbers , Assembly
ID, Q/A Code, Quantity, Production Tag # ...... and so on ad nauseam.

A1:Q34

Right now I manually insert a new line for each new part number and
this is tedious when a project might have 200 lines to be entered and
error checked.

Is there not a way using vba to do a carriage return/line feed instead
of the good but mind numbing manual way.

--------------------------------------------------------------------------------------------------------

( 2nd Problem )

The same spreadsheet is sent to other people and signed but some areas
I have protected so they can be viewed but not inadvertently altered.
What I would like to do is set the scroll area automatically so people
can tab from one place to the other and enter their names and comments
as required.

As the spreadsheet varies in depth according to the number of parts
entered I don't seem to be able to set the scroll area to increase or
decrease accordingly.


Thank you in advance for any pointers you might toss my way.


--
ZimBoy
------------------------------------------------------------------------
ZimBoy's Profile: http://www.excelforum.com/member.php...o&userid=24273
View this thread: http://www.excelforum.com/showthread...hreadid=378906

  #2   Report Post  
DNA
 
Posts: n/a
Default

(1st Problem)

Not sure if this will help, but try using this code. It places a blank
line in between each row.

Sub InsertRow_At_Change()
Dim i As Long
With Application
.Calculation = xlManual
.ScreenUpdating = False
End With
For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1
If Cells(i - 1, 1) < Cells(i, 1) Then _
Cells(i, 1).Resize(1, 1).EntireRow.Insert
Next i
With Application
.Calculation = xlAutomatic
.ScreenUpdating = True
End With
End Sub


(2nd Problem)

Why not try formatting the cells and allow for text to merely wrap? As
more information is keyed the cell(s) can grow and vice versa.

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
How to insert carriage return in the middle of a text formula to . Dave Excel Discussion (Misc queries) 2 March 17th 05 02:14 PM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 06:57 PM
Carriage Return in Excel Rod Behr Excel Discussion (Misc queries) 4 December 14th 04 01:53 PM
automatic carriage return Tbledsoe Excel Worksheet Functions 3 December 2nd 04 09:34 PM
Automatic return in an excel worksheet Peggy Excel Worksheet Functions 2 November 11th 04 01:52 AM


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