Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default selecting multiple ActiveCell items (possibly loop problem)

situation: i have an excel spreadsheet that i'm trying to manipulate
data from(multiple columns). I'm trying to use activecells, but am not
quite sure how to utilise multiple active cells. here is the basic
idea of my code......


Private Sub GreenGiraffe()

Let i = 3


Do While ActiveCell.Value < ""
Range("J" & i).Select
A = ActiveCell.Value

Select Case ActiveCell.Value

'all my case statements here

End Select


Range("F" & i).Select
B = ActiveCell.Value

Range("G" & i).Select
C = ActiveCell.Value

D = B * C * A / 1000

Range("L" & i).Formula = D

i = i + 1

Loop

End Sub



i actually think it's more of a problem to do with the loop, as when i
take it away one row of the excel sheet works perfectly.....(now that
i've tried more things, i'm pretty damn sure it's a problem with the
loop, but any suggestions are welcomed.)

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default selecting multiple ActiveCell items (possibly loop problem)

i'll add a wee bit, cos i just changed it(a bit that didn't make sense
before), and add a bit to the case, so you have an idea

......

Do While ActiveCell.Value < ""
Range("J" & i).Select

Select Case ActiveCell.Value
case 1
A = "65"
case 2
A = "50"
....
....

End Select

......

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default selecting multiple ActiveCell items (possibly loop problem)

never mind, it totally works, sorry for being slightly stupid hahah

hope this one day helps someone out...

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
Selecting Multiple items from drop down list prem Excel Discussion (Misc queries) 5 December 31st 08 09:58 AM
Selecting multiple items on Listbox Rahul_Uk Excel Programming 2 April 20th 06 05:29 PM
Paste Multiple listbox items starting at ActiveCell Casey[_67_] Excel Programming 5 April 8th 06 07:45 PM
Help: Activecell within Do loop problem DavidShepherd Excel Programming 1 December 12th 05 09:54 AM
Selecting Multiple items in ListBox Dave Peterson[_3_] Excel Programming 0 August 26th 04 01:33 AM


All times are GMT +1. The time now is 12:07 AM.

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"