LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Looping a range selection

Hello,

I'm quite new to VBA Programming, but have used many sources to figure
out what I needed to get the job done. A lot of my problems are
format-based where I do know the logic of what I want to do but the
coding in VBA is what slows me down.

I'm trying to make a loop where I can cycle through a range of selected
cells. Here is an example of my code:


For k = 6 To 14
range("BPk:HMk").Select

'Random code

Next k


Obviously this won't work because the variable I want to change is
within quotes. What I want to do is simple yet I can't figure out the
proper coding or find what I need searching the web. Any help would be
much appreciated.

---Achilles

 
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
Looping a selection of rows Andre Kruger Excel Discussion (Misc queries) 1 December 15th 05 04:18 PM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Excel Programming 3 June 7th 04 09:13 PM
Looping thru the active selection No Name Excel Programming 2 June 4th 04 08:09 PM
looping through a range Jo[_6_] Excel Programming 1 October 21st 03 11:11 PM
Direction for looping through a Selection. Bob J. Excel Programming 2 September 16th 03 01:49 PM


All times are GMT +1. The time now is 09:40 AM.

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

About Us

"It's about Microsoft Excel"