Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Stop users from inserting new lines and columns?

Can one stop/prohibit users inserting new lines and columns into a workbook
in VBA?

How would one proceed?

Neko
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Stop users from inserting new lines and columns?

Right click the excel icon in the upper left corner next to FILEview
codeinsert this. Modify to suitSAVE the workbook

Private Sub Workbook_Open()
Worksheets(1).ScrollArea = "a1:f10"
End Sub

--
Don Guillett
SalesAid Software

"KuroNeko" <none wrote in message
...
Can one stop/prohibit users inserting new lines and columns into a
workbook
in VBA?

How would one proceed?

Neko


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Stop users from inserting new lines and columns?

On Jun 22, 1:57 pm, KuroNeko <none wrote:
Can one stop/prohibit users inserting new lines and columns into a workbook
in VBA?

How would one proceed?

Neko


You could also just protect the sheet with a password. For your VBA
code to work you'd probably need to unprotect the sheet at the
beginning of your code and re-protect it at the end.
ActiveSheet.Unprotect/Protect

You can just record a macro doing the operation manually (right click
on the sheet tab) to see what the options are.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Stop users from inserting new lines and columns?

"Don Guillett" wrote in news:OTXqiNRtHHA.4612
@TK2MSFTNGP04.phx.gbl:

Right click the excel icon in the upper left corner next to FILEview
codeinsert this. Modify to suitSAVE the workbook

Private Sub Workbook_Open()
Worksheets(1).ScrollArea = "a1:f10"
End Sub


Thanks, this is a very interesting routine that allows me to limit the
visible screen area. I've filed this for future use.

However, I could still create new rows and columns, the others simply
shifted lower or to the right outside the visible area.

Is it possible to actually stop the insert row/insert column functions?

Neko
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Stop users from inserting new lines and columns?

Ferris wrote in
ups.com:


You could also just protect the sheet with a password. For your VBA
code to work you'd probably need to unprotect the sheet at the
beginning of your code and re-protect it at the end.
ActiveSheet.Unprotect/Protect


Yes, that is an option, but I'd prefer it if I could disable the insert
(and delete) row/column functions via code. Is that possible?

Neko
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
Stop users pasting data in cells trainerab Excel Discussion (Misc queries) 2 February 5th 08 05:37 PM
How can i stop users inserting and unhiding rows and columns my workbook G20EGG Excel Discussion (Misc queries) 0 September 14th 06 10:32 PM
Inserting Lines or Copying lines with formulas but without data wnfisba Excel Discussion (Misc queries) 2 August 18th 06 04:41 PM
stop users from deleting rows wAyne Excel Discussion (Misc queries) 2 February 4th 06 05:57 PM
How to let users add lines in lists in protected worksheets? Reneps Excel Discussion (Misc queries) 0 November 22nd 05 09:33 AM


All times are GMT +1. The time now is 09:49 PM.

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"