LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Inserting a row below a combobox determined cell

I have a list array named electrical that has all the prices for the items i
use. I have a prompt box to insert a new item . I want it to insert right
below the category name that is determined by the combobox then copy formulas
from a generic row so the calculations are inputed. I can't seem to figure
out how to reselect the row that i just inserted it .
Private Sub CommandButton1_Click()
Dim cell As Range
Dim SELECTEDCELL As Range

For Each cell In Sheet7.Range("electrical")
If PromptInsertItem.Category.Value = cell.Value Then
cell.Offset(1, 0).Insert SHIFT:=xlDown

End If
Next


Range("A18:x18").Select
Selection.Copy
ActiveSheet.Paste



PromptInsertItem.Hide

End Sub
 
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
Insert # of Rows determined by cell Justin H Excel Discussion (Misc queries) 13 December 6th 07 09:25 PM
Combobox items determined by the selection in another combobox Alerion Excel Programming 2 September 13th 06 01:07 PM
Getting a value from a cell that is determined by a formula carl43m Excel Discussion (Misc queries) 3 August 14th 06 06:31 PM
Look up sheet name determined in cell James Michael Excel Programming 4 August 16th 05 07:28 PM
Inserting a combobox Stefan[_6_] Excel Programming 1 January 14th 04 01:50 PM


All times are GMT +1. The time now is 08:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"