Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Macros in a template

Bit hard to explain - but here I go. I have to set up a
template in excel which then exports data from Lotus Notes
and puts data in excel.

I want to have a button that managers can push to run a
macro that sorts the data. My problem how do I select a
range when i do not know the number of rows the
spreadsheet will be as it will differ each time depending
on records selected to export.

There is within the report excel template in the Name Box
a reference to "Datarows" which shows up under the data
and advises the number of rows of data ie records. I am
unsure if I can or how to make this my end reference.
This is way over my head - any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 176
Default Macros in a template

Michelle,

When sorting, simply using

Range("A1").CurrentRegion.Sort ......

- changing the A1 to a cell that is definitely in the sort range -
will do it.

HTH,
Bernie


"Michelle" wrote in message
...
Bit hard to explain - but here I go. I have to set up a
template in excel which then exports data from Lotus Notes
and puts data in excel.

I want to have a button that managers can push to run a
macro that sorts the data. My problem how do I select a
range when i do not know the number of rows the
spreadsheet will be as it will differ each time depending
on records selected to export.

There is within the report excel template in the Name Box
a reference to "Datarows" which shows up under the data
and advises the number of rows of data ie records. I am
unsure if I can or how to make this my end reference.
This is way over my head - any help would be appreciated.



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
Macros for template Mike New Users to Excel 1 November 21st 09 07:35 PM
Problem with macros in custom excel template return2300 Excel Discussion (Misc queries) 1 February 20th 08 11:13 PM
Macros for the AR Aging Workbook template? Ursula Excel Worksheet Functions 0 September 15th 05 08:52 PM
Template with macros reddog9069 Excel Discussion (Misc queries) 2 July 19th 05 03:51 PM
Disable macros in template d/l from MS? Ferret Daddy New Users to Excel 1 February 9th 05 12:54 AM


All times are GMT +1. The time now is 04:16 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"