Guys,
How to run the macros while the sheet is being protected.
Any ideos.
Please reply me at [email protected]
Guys,
How to run the macros while the sheet is being protected.
Any ideos.
Please reply me at [email protected]
Dinesh Vijaywargiay
You can still run macros even if the sheet is being protected. By the way, how are you currently running them. As for you other posts, are you running the web query though a macro, or have you set it up.
Mangesh
Dinesh,
Try the following to unprotect the activesheet:-
..unprotect password:="yourpasswordhere"
To protect the sheet try:-
..protect password:="yourpasswordhere"
HTH
Pank
"mangesh_yadav" wrote:
>
> You can still run macros even if the sheet is being protected. By the
> way, how are you currently running them. As for you other posts, are
> you running the web query though a macro, or have you set it up.
>
> Mangesh
>
>
> --
> mangesh_yadav
> ------------------------------------------------------------------------
> mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
> View this thread: http://www.excelforum.com/showthread...hreadid=377989
>
>
Hi,
I am getting the following error when I run the macros while the sheet being protected.
" Run time error '1004' Sort method of range class failed"
Actually I am refreshing a web query through macro.
& dear pank... I don't know where to put the code.. Please tell me in detail.
Have a Nice Day !
Dinesh Vijaywargiay
How about just unprotecting the worksheet, run your code and reprotect the
worksheet?
dinesh wrote:
>
> HI,
>
> I AM GETTING THE FOLLOWING ERROR WHEN I RUN THE MACROS WHILE THE
> SHEET BEING PROTECTED.
> ::-
> \\" RUN TIME ERROR '1004' SORT METHOD OF RANGE CLASS FAILED\\"
> -
>
> Actually I am refreshing a web query through macro.
>
> & dear pank... I don't know where to put the code.. Please tell
> me in detail.
> *
> Have a Nice Day !
> Dinesh Vijaywargiay
> *::
>
> --
> dinesh
>
> ------------------------------------------------------------------------
> dinesh's Profile: http://www.excelforum.com/member.php...o&userid=24177
> View this thread: http://www.excelforum.com/showthread...hreadid=377989
--
Dave Peterson
Unprotecting the sheet, running code & again protecting sheet..
That's not the solution.
I remember there is some method of modifying the VBA code... by entering the password in the code... I am not able to recall
modify the code to unprotect the sheet as the first line of the macro and protect as the last line. a previous post states that code.
hit alt+f11 to open the vba window and add the code to the correct macro
Thanks kaplan.
Is that code correct? I am getting some error.
Can you please modify my code. My code is :
Sub name()
'
' name Macro
' Macro recorded 3/14/2005 by Dinesh
'
' Keyboard Shortcut: Ctrl+q
'
Range("A3:az28").Sort Key1:=Range("A4"), Order1:=xlAscending, Header:= _
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub
Regards,
Dinesh Vijaywargiay
sub name()
..unprotect password:="yourpasswordhere"
...the code that is currently there....
..protect password:="yourpasswordhere"
end sub
make sure you change "yourpasswordhere" to what your password is.
I am not getting it... does those two dots need to be there...
Can you please modify my code...
I am getting errors like... 'Can't execute in breake mode' 'Identifier or bracketed expression'
I will fill the password field...
Regards,
Dinesh Vijaywargiay
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks