PC Review


Reply
Thread Tools Rate Thread

Disable inserting or deleting row in selection of rows

 
 
Filips Benoit
Guest
Posts: n/a
 
      6th Nov 2007
Dear All,

Is it possible to ensure that the use cannot insert or delete rows in the
first printed page ( rows 1 till 38 in my case).
Since there is a button that insert data from a SQL-database in the first
page this page shoud not be altered in number of rows but the user shoud
still be able to change cell-data!

Thanks,

Filip


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWljaGFlbA==?=
Guest
Posts: n/a
 
      6th Nov 2007
You can protect the sheet after the Database has been updated using the
following statement:


ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True

This will allow selecting cells, but not inserting rows.


--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Filips Benoit" wrote:

> Dear All,
>
> Is it possible to ensure that the use cannot insert or delete rows in the
> first printed page ( rows 1 till 38 in my case).
> Since there is a button that insert data from a SQL-database in the first
> page this page shoud not be altered in number of rows but the user shoud
> still be able to change cell-data!
>
> Thanks,
>
> Filip
>
>
>

 
Reply With Quote
 
=?Utf-8?B?TWljaGFlbA==?=
Guest
Posts: n/a
 
      6th Nov 2007
To make sure you can change data on any cell place the following instruction
before the one I posted on my previous reply, something like this:

Cells.Locked = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowInsertingRows:=True
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Michael" wrote:

> You can protect the sheet after the Database has been updated using the
> following statement:
>
>
> ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
>
> This will allow selecting cells, but not inserting rows.
>
>
> --
> If this posting was helpful, please click on the Yes button.
> Regards,
>
> Michael Arch.
>
>
>
>
> "Filips Benoit" wrote:
>
> > Dear All,
> >
> > Is it possible to ensure that the use cannot insert or delete rows in the
> > first printed page ( rows 1 till 38 in my case).
> > Since there is a button that insert data from a SQL-database in the first
> > page this page shoud not be altered in number of rows but the user shoud
> > still be able to change cell-data!
> >
> > Thanks,
> >
> > Filip
> >
> >
> >

 
Reply With Quote
 
Filips Benoit
Guest
Posts: n/a
 
      6th Nov 2007
So, protection that disables insert-row and delete-row but allows editing is
NOT possible !

Filip

"Michael" <(E-Mail Removed)> wrote in message
news:AC28638B-94D5-4BC4-A6F9-(E-Mail Removed)...
> You can protect the sheet after the Database has been updated using the
> following statement:
>
>
> ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
>
> This will allow selecting cells, but not inserting rows.
>
>
> --
> If this posting was helpful, please click on the Yes button.
> Regards,
>
> Michael Arch.
>
>
>
>
> "Filips Benoit" wrote:
>
>> Dear All,
>>
>> Is it possible to ensure that the use cannot insert or delete rows in the
>> first printed page ( rows 1 till 38 in my case).
>> Since there is a button that insert data from a SQL-database in the first
>> page this page shoud not be altered in number of rows but the user shoud
>> still be able to change cell-data!
>>
>> Thanks,
>>
>> Filip
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?TWljaGFlbA==?=
Guest
Posts: n/a
 
      6th Nov 2007
Yes, in excel 2003 you should be able to protect the worksheet, with the
following settings:

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowInsertingRows:=False, AllowDeletingRows:=False

The next statement, allows you to change the cell values(What you refer as
editing):

Cells.Locked = False



--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Filips Benoit" wrote:

> So, protection that disables insert-row and delete-row but allows editing is
> NOT possible !
>
> Filip
>
> "Michael" <(E-Mail Removed)> wrote in message
> news:AC28638B-94D5-4BC4-A6F9-(E-Mail Removed)...
> > You can protect the sheet after the Database has been updated using the
> > following statement:
> >
> >
> > ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
> >
> > This will allow selecting cells, but not inserting rows.
> >
> >
> > --
> > If this posting was helpful, please click on the Yes button.
> > Regards,
> >
> > Michael Arch.
> >
> >
> >
> >
> > "Filips Benoit" wrote:
> >
> >> Dear All,
> >>
> >> Is it possible to ensure that the use cannot insert or delete rows in the
> >> first printed page ( rows 1 till 38 in my case).
> >> Since there is a button that insert data from a SQL-database in the first
> >> page this page shoud not be altered in number of rows but the user shoud
> >> still be able to change cell-data!
> >>
> >> Thanks,
> >>
> >> Filip
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting/inserting rows jj66 Microsoft Excel Discussion 0 18th Jun 2009 10:19 PM
Inserting and Deleting Rows in Excel ttonkel Microsoft Excel Worksheet Functions 2 7th Mar 2009 03:06 PM
Inserting or Deleting Rows =?Utf-8?B?U3RldmVk?= Microsoft Excel Programming 4 24th Oct 2007 02:07 AM
DatagridView Disable some rows selection =?Utf-8?B?RGlvZ28gQWx2ZXMgLSBTb2Z0d2FyZSBEZXZlbG9w Microsoft C# .NET 2 26th Feb 2007 02:11 PM
Deleting & Inserting Rows Chris Taylforth Microsoft Excel Worksheet Functions 2 27th Jul 2004 12:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 AM.