Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default disable from deleting rows; folders not to delete; sheets to inser

Dear All

Need guidance for the flg:

1. Sheets to be unprotected but must disable the option to delete any rows
and columns or cells. Is it possbile to enter a code in the worksheet??

2. Any idea to stop deleting the folders in windows bcos in the vb the
current workbook will be saved in a folder but some new ppl come and delete
the folder in windows and the program gives errors.

3. In the program the current sheet is deleted and inserts new data and
renames it to the old sheet name. Due to some wrongful entries the program
aborts after deleting the sheet. In that case when the program is run it
will error as the sheet is not present and hence want a line of vb to say if
the sheet 'report' is missing then Sheets.Add().Name = "report" so that the
program can continue.

Pls help

Brgds/captgnvr
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default disable from deleting rows; folders not to delete; sheets to inser


Found = False
For each Sht in sheets
if Sht.Name = "report" then
Found = True
exit for
end if
next Sht

If found = False then
Sheets.Add().Name = "report"
end if


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=145627

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default disable from deleting rows; folders not to delete; sheets to i

D/Joel

I was waiting for notification to my email id and never got any. I took the
chance to see if any answer then I found your response and hence sorry for
the delay in ack.

Just saw ur help. will read up the links and revert. Thanks for the tips
and will try the code also n wl rvrt.
brgds/captgnvr

"joel" wrote:


Found = False
For each Sht in sheets
if Sht.Name = "report" then
Found = True
exit for
end if
next Sht

If found = False then
Sheets.Add().Name = "report"
end if


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=145627

.

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
Disable inserting or deleting row in selection of rows Filips Benoit[_2_] Excel Programming 4 November 6th 07 07:59 PM
inserting deleting rows?how do i get the other sheets to do the sa cunningham82 Excel Discussion (Misc queries) 0 December 27th 06 09:51 PM
Block inser or delete rows Prema Excel Programming 0 January 17th 06 08:19 AM
Disable Adding & Deleting Rows/Columns Playa Excel Discussion (Misc queries) 1 February 3rd 05 03:42 PM
Disable Adding or Deleting Rows and Columns Playa Excel Discussion (Misc queries) 1 January 10th 05 10:23 PM


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