LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Adding a row with macro


"Nigel" wrote in message
...
Hi Bob,

Sorry, i forgot to mention that the Textbox is actually a combobox


:-)

and it is
on another sheet called "Contacts Page". Everything works from here and

the
"Contacts" sheet is hidden. the next cell is found and row inserted

without
actually opening the sheet.


Presumably ws points to 'Contacts Page' and the combo is on some other page?

iRow = ws.Cells(Rows.Count, 1) _
.End(xlUp).Offset(1, 0).Row
ws.Rows(iRow).Insert
ActiveSheet.ComboBox1.ListFillRange = "'Contacts Page'!A3:G" & iRow

should work, it did in my tests


 
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
Adding a new row with a macro Dobbs734 Excel Discussion (Misc queries) 2 June 1st 09 06:08 PM
Adding to a Macro Steven Excel Discussion (Misc queries) 2 December 15th 08 06:21 PM
Adding a Tab in a Macro [email protected] Excel Discussion (Misc queries) 10 February 28th 06 09:57 PM
Adding Row to this macro Nigel Excel Discussion (Misc queries) 2 May 4th 05 05:27 PM
Adding row Macro From Mike G. Excel Programming 2 May 18th 04 06:21 PM


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