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: 38
Default Control button to add copied row below user selection

'I am a VB Novice'
I have a worksheet with a bunch of job data, where I have placed a
CommandButton in the header stateing "To enter new invoice information,
please select a job and click OK". My code is simply this:

Private Sub CommandButton1_Click()

ActiveCell.Offset(1, 0).EntireRow.Select
Selection.Insert Shift:=x1Down

End Sub

I don't know what this means, but it works fine. Problem is that I would
prefer that the row inserted have particular formating and not aquire the
formating of the row above. So, I created this formated row at the top of
the worksheet and did a Hide on it. so now I would like copy and paste that
row just below the row the user selects.
 
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
Splitting up one's highlighted selection as if you had used to"control" button for each selection Zarlot Excel Programming 0 May 16th 08 07:31 PM
How to simulate Control (button) and Mouse Selection of cell Rick S. Excel Programming 0 January 2nd 08 04:08 PM
How to control the user can or cannot select? Selection filter? stm Excel Programming 0 November 2nd 05 01:29 PM
Saving copied info while running a Selection Change Macro J Streger Excel Programming 1 April 5th 05 12:33 AM


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