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: 8
Default Macro/Worksheet interaction

I am trying to write an Excel Macro to carry out 3 repetative changes to
groups of cells on a matrix 36 cells wide x 24 cells deep, after I have input
a numeric value to a specific cell on the worksheet and then chosen an active
cell.

The first change is to read the numeric value into a REPLACE function in the
macro.
Next to select a range of cells 4 columns wide x 3 rows deep from the
active cell in the top left location.
I have tried doing this with the command €“
Range(Activecell,activecell.Offset(3,2)).Select
Clearcontents

But when I try to run this, it returns the comment €œSub or function not
defined€

The global array is made up of 6 €“ 12 x 12 sub matrices €“ 3 wide x 2 deep.
The second requirement is to locate which of these 6 sub matrices contain
the active cell.
I think this can be done by nested €˜if statements. I.e.
If(activecell<M13,subr1,if(activecell<Y13,subr2,if (..................etc

Subr1 then says Range(A1:L12) subrx
Subr 2 Range(M1:X12) subrx

But again it will not run

The final requirement is to select a range of 4 columns with the active cell
column reference as the leftmost.

Can you help?

Les Power

 
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
Macro interaction C Brandt Excel Discussion (Misc queries) 5 May 2nd 07 10:00 PM
Macro Interaction on Server kmbarz Excel Programming 1 July 19th 06 08:13 AM
chart/worksheet/macro interaction nc10001 Charts and Charting in Excel 1 July 31st 05 09:21 PM
macro/worksheet/chart interaction nc10001 Excel Discussion (Misc queries) 1 July 31st 05 02:33 PM
How can I stop a macro for Human Interaction Henry Stock Excel Programming 2 February 19th 05 10:15 PM


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