PC Review


Reply
Thread Tools Rate Thread

disable from deleting rows; folders not to delete; sheets to inser

 
 
CAPTGNVR
Guest
Posts: n/a
 
      19th Oct 2009
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
 
Reply With Quote
 
 
 
 
CAPTGNVR
Guest
Posts: n/a
 
      21st Oct 2009
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 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 all rows in all sheets Jodie Microsoft Excel Programming 4 9th Nov 2009 05:18 PM
Deleting rows from mutliple sheets diba Microsoft Excel Programming 1 16th Aug 2007 05:57 PM
Deleting rows from all sheets in an array? =?Utf-8?B?QVZS?= Microsoft Excel Programming 1 31st Jan 2007 04:26 PM
Block inser or delete rows =?Utf-8?B?UHJlbWE=?= Microsoft Excel Programming 0 17th Jan 2006 08:19 AM
Deleting rows in a workbook though all coresponding sheets =?Utf-8?B?RGF2ZSBCYXRlcw==?= Microsoft Excel Misc 2 8th Feb 2004 10:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:52 AM.