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: 26
Default Breaking down my macros into pieces

I tried laying out a project and asking for help but no one responded so I will attempt to break it down which means I will have a lot of small posts mainly showing my attempt at the context of what I am trying to do. I apologize, it has been quite a few years since I built a project like this. I am trying to adapt macro pieces I have saved over the years but I am rusty on the specifics. So here goes.



Dim Totalrows As Integer
Totalrows = Cells(Rows.Count, "A").End(xlUp).Row


I want to modify the command above to start at a specific cell which I have identified as a range Start. I want the variable Totalrows which I have current defined as a integer to record a number of rows from this first row to the last row that has records.

I tried modifying where it says "A" to be Range("Start") but that is not working, and right now it looks like

Crows = Cells(Rows.Count, Range("Start").End(xlUp).Row

Once I have this value of total rows for the range I am processing, then I can start a loop that will process until this variable totalrows is reached..



Can you get me going here please?

Thanks,


BR
 
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
multiply # of pieces Mike Stewart New Users to Excel 6 March 8th 09 12:04 AM
Finding pieces of a value in a table root Excel Discussion (Misc queries) 0 July 21st 06 03:55 PM
Finding pieces of a value in a table root Excel Discussion (Misc queries) 0 July 21st 06 03:55 PM
how do i get a set of pieces from a given # with standard lengths sseguine Excel Worksheet Functions 1 December 18th 05 01:34 PM
Question on worksheet protection and breaking macros Peter Bernadyne[_2_] Excel Programming 0 August 11th 04 09:08 PM


All times are GMT +1. The time now is 05:00 PM.

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"