Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Assignment Statement

Hi

Unless you have decalred Tom somewhere as a variable or
constant and set the value the code will not work.

If you intended to test if the name was = Tom, put Tom is
quotes, ie "Tom"


-----Original Message-----
Hi,
Please correct the code below:

Sub ChangeBoy()
Range("SelectedBoy").Value = Sheets("Sheet1").Range
("Boys") & Range("SelectedBoyRow")
If Range("SelectedBoy") = Tom Then
Range("A2:A10").Select
End If
End Sub

It has been a long time since I programmed using VBA,

and
I was never good at it either. My help files have not

been
installed. I appreciate any help.

Thanks,
Sisilla
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Picture # assignment danpt Excel Discussion (Misc queries) 9 April 4th 09 10:59 PM
help with assignment within next 24hrs icecoldmike Excel Discussion (Misc queries) 0 April 6th 06 01:31 AM
Key Assignment Log Norma Excel Discussion (Misc queries) 0 May 12th 05 04:10 PM
assignment problem L. Chung Excel Worksheet Functions 1 April 17th 05 06:06 AM
excel assignment Davko Excel Discussion (Misc queries) 1 April 15th 05 08:32 AM


All times are GMT +1. The time now is 11:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"