Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Shifting data down

I have a form that pastes data into a worksheet. I have informatio
about half way down the page. How do I shift that data down so tha
new information coming in from my text box can be placed between th
top and that other data.

Right now my code just starts pasting after the heading that is in th
middle of the page.

With Worksheets("Notes")
cLastRow = .Cells(Rows.Count, "G").End(xlUp).Row

.Cells(cLastRow + 2, "G").Value = "Top Number: " & TopNum.Text
.Cells(cLastRow + 3, "G").Value = "Part Number: " & LPartNum.Text
.Cells(cLastRow + 4, "G").Value = LNotes_Box.Text

Any Suggestion?

Thank you,
Morr

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Shifting data down

A bit more details on the layout of your sheet will help

Do you have data above the headings?

If yes is there blank rows between this data and the heading

if yes you could use

With Worksheets("Notes")
cUseRow = .Cells(1, "G").End(xlDown).Row+1
' may need to change this to insert muliple rows
rows(cuserow).Insert Shift:=xlDown


..Cells(cUseRow + 2, "G").Value = "Top Number: " & TopNum.Text
..Cells(cUseRow + 3, "G").Value = "Part Number: " & LPartNum.Text
..Cells(cUseRow + 4, "G").Value = LNotes_Box.Text


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Shifting data down

Thank you for your help. I'm sorry it took me so long to reply

--
Message posted from http://www.ExcelForum.com

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
Shifting Data Points cyatkins Charts and Charting in Excel 1 December 5th 07 07:46 PM
Shifting Date from all data on one row to several rows ChuckW Excel Discussion (Misc queries) 1 June 8th 05 07:56 PM
Automatically shifting data, part II S. Stone Excel Worksheet Functions 0 May 5th 05 09:05 PM
Shifting Data Right Within A Range Dan Excel Programming 2 February 16th 04 02:24 PM


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