PC Review


Reply
Thread Tools Rate Thread

Checking which row is selected

 
 
John in Wembley
Guest
Posts: n/a
 
      18th Sep 2007
Hi

I have some simple VB wich is going to paste 7 rows of a template
report into a sheet.
The nurse is going to be able to paste a blank reporting template
before another to keep them in alpabetical order...

I need to know that the activecell is multipliers of 8 eg a8 or b16 or
d24 a32 etc etc so they can run the macro to paste the 7 rows plus one
row as space into the report without overlaping the pervious report

how could I do this? I was pondering if I could devide the number eg
32 and get a true / false
As long as it was true I know its a mulitplier of 8
any other idears?

cheers
JOhn
 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      18th Sep 2007
Use MOD:

Sub sonic()
n = Application.InputBox("enter a number: ")
If n Mod 8 = 0 Then
MsgBox ("divisible by 8")
Else
MsgBox ("not divisible")
End If
End Sub

--
Gary''s Student - gsnu2007


"John in Wembley" wrote:

> Hi
>
> I have some simple VB wich is going to paste 7 rows of a template
> report into a sheet.
> The nurse is going to be able to paste a blank reporting template
> before another to keep them in alpabetical order...
>
> I need to know that the activecell is multipliers of 8 eg a8 or b16 or
> d24 a32 etc etc so they can run the macro to paste the 7 rows plus one
> row as space into the report without overlaping the pervious report
>
> how could I do this? I was pondering if I could devide the number eg
> 32 and get a true / false
> As long as it was true I know its a mulitplier of 8
> any other idears?
>
> cheers
> JOhn
>

 
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
Combo box checking if record selected =?Utf-8?B?UExE?= Microsoft Access Form Coding 4 2nd Mar 2007 01:58 PM
Checking to see if a button is selected cheaperThanAPro Microsoft Excel Programming 4 22nd Oct 2005 12:44 AM
Checking for Selected Text in a NumericUpDown =?Utf-8?B?Q2hpZ21vbg==?= Microsoft Dot NET Framework 0 23rd May 2005 01:15 PM
Checking if what is selected is an email noone Microsoft Outlook VBA Programming 1 16th Sep 2003 01:39 AM
Checking to see if user selected an Option Kirk Microsoft Excel Programming 1 27th Aug 2003 09:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:57 AM.