Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2011, 11:14 PM
sheen.buhay sheen.buhay is offline VBA Macro Windows XP VBA Macro Office 2007
Novice
VBA Macro
 
Join Date: Aug 2011
Posts: 7
sheen.buhay is on a distinguished road
Post VBA Macro

Hi,



I need some help on the following using VBA Macro (optional):
  • hide column A however unable to unhide it
  • unable to delete columns B, C and so on but users have the ability to enter data entry on every cell or rows
Thanks.
Reply With Quote
  #2  
Old 08-26-2011, 12:31 AM
Catalin.B Catalin.B is offline VBA Macro Windows Vista VBA Macro Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

you dont need a macro for this, after you hide a column, and after you lock or unlock the cells you want your users to be able to modify, under the review tab, protect worksheet, check the options that enables your user to do (or not) an action on that worksheet. The password is optional, but if you dont use a password, your users can unprotect the worksheet and delete columns by simply clicking the unprotect worksheet under review-tab

you have here details about using this feature

http://office.microsoft.com/en-us/he...010078580.aspx
Reply With Quote
  #3  
Old 08-26-2011, 12:45 AM
sheen.buhay sheen.buhay is offline VBA Macro Windows XP VBA Macro Office 2007
Novice
VBA Macro
 
Join Date: Aug 2011
Posts: 7
sheen.buhay is on a distinguished road
Default

I appreciate your reply Catalin however what I need is to enable a password protect that does not allow users to delete all columns and the unhide column option is disabled.

Probably this behavior can be applied using VBA code. If you knew something about writing in VBA macro that would be great.

Thanks.
Reply With Quote
  #4  
Old 08-26-2011, 01:09 AM
Catalin.B Catalin.B is offline VBA Macro Windows Vista VBA Macro Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

as i said, this can be done without a macro, you have attached a sample worksheet with columns G,H,i hidden, and all cells in sheet unlocked, so the users can enter data.

Just use the provided link with detailed instructions to do what you want.
Reply With Quote
  #5  
Old 08-26-2011, 01:10 AM
Catalin.B Catalin.B is offline VBA Macro Windows Vista VBA Macro Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

and the sample
Attached Files
File Type: xlsx sample.xlsx (8.0 KB, 7 views)
Reply With Quote
  #6  
Old 08-26-2011, 02:25 AM
sheen.buhay sheen.buhay is offline VBA Macro Windows XP VBA Macro Office 2007
Novice
VBA Macro
 
Join Date: Aug 2011
Posts: 7
sheen.buhay is on a distinguished road
Default

thanks catalin for the inputs.
Reply With Quote
  #7  
Old 08-26-2011, 03:06 AM
Catalin.B Catalin.B is offline VBA Macro Windows Vista VBA Macro Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

You're welcome
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I assign a macro to a button when the macro is in my personal workbook? foolios Excel Programming 2 07-27-2011 02:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft