Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro question

Hi,

I am familiar with macros but can't figure out how to do this one.

I want to create a macro that will enter specific data into 4 different
cells. The problem is that the starting cell will be different each time.
Example

When I run the macro, I want to click on cell A1 to start in, and have it
put 10 in each of the following cells:
A B C D
1 10 10 10 10
2

So now, if I click on cell A17, I want the macro to put 10 in A17, B17, C17
and D17.

I don't even know what terminology to use to describe this situation.

Any help would be great!
Thanks,
mike

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Macro question


Activecell.Resize(1,4).Value=10

Tim

"Michaelt721" wrote in message
...
Hi,

I am familiar with macros but can't figure out how to do this one.

I want to create a macro that will enter specific data into 4 different
cells. The problem is that the starting cell will be different each time.
Example

When I run the macro, I want to click on cell A1 to start in, and have it
put 10 in each of the following cells:
A B C D
1 10 10 10 10
2

So now, if I click on cell A17, I want the macro to put 10 in A17, B17,
C17
and D17.

I don't even know what terminology to use to describe this situation.

Any help would be great!
Thanks,
mike



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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
Macro question orquidea Excel Discussion (Misc queries) 4 January 11th 08 01:05 AM
Macro Question carl Excel Worksheet Functions 0 June 8th 06 03:37 PM
new macro question Michael A Excel Programming 1 March 8th 05 01:08 AM
Macro Question Phatchef24[_6_] Excel Programming 1 September 16th 04 12:02 AM


All times are GMT +1. The time now is 12:09 PM.

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"