PC Review


Reply
Thread Tools Rate Thread

Change Single-Click Functionality?

 
 
=?Utf-8?B?V3VkZHVz?=
Guest
Posts: n/a
 
      7th Sep 2007
Hi--

I work for a publishing company whose editors are really comfortable with
Microsoft Word. They're terrified of Excel and avoid it whenever possible.

I'm trying to sell the benfits of Excel to them, however, and am rebuilding
a few forms they've clunkily set as Word tables into Excel as a demo. By way
of trying to mimic Word as much as possible without sacrificing the benfits
of Excel, however, I was wondering if there's VBA code I can use to change
Excel's single-click function so that, whenever a user clicks on an unlocked
cell, an editing cursor immediately appears (as opposed to Excel's default,
where you need to double-click on a cell to to in-cell edits).

Most of the cells (espcially those with formulas) are locked, so that the
only unlocked ones are those calling for text input of one sort or another.
Is what I want to do even possible?

Thanks for any help anyone can offer!

 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      8th Sep 2007
It can be done, but to my mind shouldn't be done. Put the following in the
ThisWorkbook module.

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
If Sh.ProtectContents = True Then
If Target.Locked = False Then
SendKeys "{F2}"
End If
Else
SendKeys "{F2}"
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Wuddus" <(E-Mail Removed)> wrote in message
news:65E1677D-3C93-4BFE-918B-(E-Mail Removed)...
> Hi--
>
> I work for a publishing company whose editors are really comfortable with
> Microsoft Word. They're terrified of Excel and avoid it whenever possible.
>
> I'm trying to sell the benfits of Excel to them, however, and am
> rebuilding
> a few forms they've clunkily set as Word tables into Excel as a demo. By
> way
> of trying to mimic Word as much as possible without sacrificing the
> benfits
> of Excel, however, I was wondering if there's VBA code I can use to change
> Excel's single-click function so that, whenever a user clicks on an
> unlocked
> cell, an editing cursor immediately appears (as opposed to Excel's
> default,
> where you need to double-click on a cell to to in-cell edits).
>
> Most of the cells (espcially those with formulas) are locked, so that the
> only unlocked ones are those calling for text input of one sort or
> another.
> Is what I want to do even possible?
>
> Thanks for any help anyone can offer!
>


 
Reply With Quote
 
=?Utf-8?B?V3VkZHVz?=
Guest
Posts: n/a
 
      10th Sep 2007
Thanks for the reply, Chip! I've referred to your Web site often over the
years, so it's a little like getting a reply from, say, Tom Cruise or
something.

Anyway, I agree it shouldn't be done. I like the protection that
double-click in-cell editing provides, but unfortunately I'm in the minority.
I'm afraid, though, that I don't think this method will work for me. Almost
everyone in Editorial is on PC, but a few of them are on Mac, and I don't
think SendKeys works on both platforms. (At least, that's what the help
system on a Mac told me this morning when I tested the procedure on it.)

So probably I'm just screwed on this poin,t unless you have any other ideas.
Sorry I didn't mention the PC/Mac thing in my email. Most of the time it
doesn't really effect how we use Word and Excel, but in this case it does.
Sigh.

I truly appreciate the suggestion, though!

"Chip Pearson" wrote:

> It can be done, but to my mind shouldn't be done. Put the following in the
> ThisWorkbook module.
>
> Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
> As Range)
> If Sh.ProtectContents = True Then
> If Target.Locked = False Then
> SendKeys "{F2}"
> End If
> Else
> SendKeys "{F2}"
> End If
> End Sub
>
>
> --
> Cordially,
> Chip Pearson
> Microsoft MVP - Excel
> Pearson Software Consulting
> www.cpearson.com
> (email on the web site)
>
>
> "Wuddus" <(E-Mail Removed)> wrote in message
> news:65E1677D-3C93-4BFE-918B-(E-Mail Removed)...
> > Hi--
> >
> > I work for a publishing company whose editors are really comfortable with
> > Microsoft Word. They're terrified of Excel and avoid it whenever possible.
> >
> > I'm trying to sell the benfits of Excel to them, however, and am
> > rebuilding
> > a few forms they've clunkily set as Word tables into Excel as a demo. By
> > way
> > of trying to mimic Word as much as possible without sacrificing the
> > benfits
> > of Excel, however, I was wondering if there's VBA code I can use to change
> > Excel's single-click function so that, whenever a user clicks on an
> > unlocked
> > cell, an editing cursor immediately appears (as opposed to Excel's
> > default,
> > where you need to double-click on a cell to to in-cell edits).
> >
> > Most of the cells (espcially those with formulas) are locked, so that the
> > only unlocked ones are those calling for text input of one sort or
> > another.
> > Is what I want to do even possible?
> >
> > Thanks for any help anyone can offer!
> >

>

 
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
How to change mouse from single click to double click? Mike Microsoft Outlook Discussion 1 16th Jun 2008 08:29 PM
How to change syperlink from single click to double click syperlinker Microsoft Excel Worksheet Functions 0 13th Jun 2008 05:01 PM
Change single click to double click =?Utf-8?B?QXVja2xhbmRBc3NhdWx0?= Microsoft Excel Programming 4 6th Mar 2007 07:26 PM
hot to change mouse to single click instead of double click to ope =?Utf-8?B?am9zZXBoIGJlbGw=?= Windows Vista Hardware 1 14th Jun 2006 09:03 PM
Re: Change single click to double click???????????????? jopa66 Windows XP Help 0 10th Aug 2004 05:24 AM


Features
 

Advertising
 

Newsgroups
 


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