PC Review


Reply
Thread Tools Rate Thread

code for text

 
 
=?Utf-8?B?Q3VydA==?=
Guest
Posts: n/a
 
      5th Jul 2007
If Target.Column = 13 And Target.hastext Then _
Call CopyDoIt(Target)
Not sure if this is right it does not seem right. Trying to call DoIt if
text in column 13 Same idea for code works with numeric. This is first time
I've tried to call by text.
Thanks Much
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      5th Jul 2007
Test for Numeric

If Isnumeric(target) then

or not

If Not IsNumeric(Target)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Curt" <(E-Mail Removed)> wrote in message
news:2BA6CBD3-1BF9-463E-8BAD-(E-Mail Removed)...
> If Target.Column = 13 And Target.hastext Then _
> Call CopyDoIt(Target)
> Not sure if this is right it does not seem right. Trying to call DoIt if
> text in column 13 Same idea for code works with numeric. This is first
> time
> I've tried to call by text.
> Thanks Much



 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      5th Jul 2007
If target.count > 1 then exit sub
if Target.column = 13 and VarType(target.value) = vbString then

--
Regards,
Tom Ogilvy


"Curt" wrote:

> If Target.Column = 13 And Target.hastext Then _
> Call CopyDoIt(Target)
> Not sure if this is right it does not seem right. Trying to call DoIt if
> text in column 13 Same idea for code works with numeric. This is first time
> I've tried to call by text.
> Thanks Much

 
Reply With Quote
 
=?Utf-8?B?Q3VydA==?=
Guest
Posts: n/a
 
      5th Jul 2007
Thakks Again. Hope you had a joyus Bday
"Tom Ogilvy" wrote:

> If target.count > 1 then exit sub
> if Target.column = 13 and VarType(target.value) = vbString then
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Curt" wrote:
>
> > If Target.Column = 13 And Target.hastext Then _
> > Call CopyDoIt(Target)
> > Not sure if this is right it does not seem right. Trying to call DoIt if
> > text in column 13 Same idea for code works with numeric. This is first time
> > I've tried to call by text.
> > Thanks Much

 
Reply With Quote
 
=?Utf-8?B?Q3VydA==?=
Guest
Posts: n/a
 
      6th Jul 2007



> If target.count > 1 then exit sub
> if Target.column = 13 and VarType(target.value) = vbString then _

call Copy DoIt (Target )
DoIt same as another I have but does not copy & paste? Must have to do with
useing text? Heres DoIt
ublic Sub CopyDoIt(ByVal Target As Range)
Dim wksSummary As Worksheet
Dim rngPaste As Range
Set wksSummary = Sheets("Announcer")
Set rngPaste = wksSummary.Cells(65536, "A").End(xlUp).Offset(1, 0)
Application.EnableEvents = False
Set rngPaste = rngPaste.Offset(0, 0)
Range(Target.Offset(0, -8), Target.Offset(0, -4)).Copy _
Destination:=rngPaste
rngPaste.Offset(0, 5) = Target
Application.EnableEvents = True
End Sub

End result is to have Announcer wksheet have Cells from (row) in
Columns A:E:F:G:H
1 4 5 6 7 8
Hope I make sense
Thanks
> --
> Regards,
> Tom Ogilvy
>
>


 
Reply With Quote
 
=?Utf-8?B?Q3VydA==?=
Guest
Posts: n/a
 
      6th Jul 2007
disregard my last post. I got going down the wrong road. still would like to
know why it didn't work for future reference.
Thanks Again

"Tom Ogilvy" wrote:

> If target.count > 1 then exit sub
> if Target.column = 13 and VarType(target.value) = vbString then
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Curt" wrote:
>
> > If Target.Column = 13 And Target.hastext Then _
> > Call CopyDoIt(Target)
> > Not sure if this is right it does not seem right. Trying to call DoIt if
> > text in column 13 Same idea for code works with numeric. This is first time
> > I've tried to call by text.
> > Thanks Much

 
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
Macro - Fixed text code needs replacing with variable text steven.holloway Microsoft Excel Misc 3 22nd Jul 2008 03:57 PM
Convert a Number Code to a Text Code =?Utf-8?B?VHJheWU=?= Microsoft Excel Misc 3 6th Apr 2007 09:54 PM
How can I see a text code, such as the code for 'line return'? =?Utf-8?B?QmxhY2toYXdr?= Microsoft Word Document Management 3 26th Jan 2006 09:15 PM
Changing a text boxes value (from code) of a data bound text box does not work Joshua Ellul Microsoft ADO .NET 2 17th Oct 2003 01:03 AM
Changing a text boxes value (from code) of a data bound text box does not work Joshua Ellul Microsoft Dot NET 0 15th Oct 2003 06:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 AM.