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

I would like to create a macro that would generate a small column of words
when needed. The problem is I need the start location to vary. One day in
one cell, the next day another cell. Can this be done?

Sample:

Word1
Word2
Word3
Word4

Column location will vary from excel sheet to excel sheet.

Thanks in advance,

Ric
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Macro creation

Rickm here is one way,

Sub test()
ActiveCell = "word1"
ActiveCell.Offset(1, 0) = "word2"
ActiveCell.Offset(2, 0) = "word3"
ActiveCell.Offset(3, 0) = "word4"
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Rick" wrote in message
...
I would like to create a macro that would generate a small column of words
when needed. The problem is I need the start location to vary. One day

in
one cell, the next day another cell. Can this be done?

Sample:

Word1
Word2
Word3
Word4

Column location will vary from excel sheet to excel sheet.

Thanks in advance,

Ric



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
Macro creation Ojunera Excel Worksheet Functions 0 October 6th 08 06:28 PM
Macro creation Xavier[_2_] Excel Worksheet Functions 1 May 14th 08 04:43 AM
Macro Creation Programming Cells Excel Discussion (Misc queries) 3 July 28th 05 06:07 PM
Macro Creation MartinaL Excel Programming 4 May 12th 05 08:11 AM
XML creation via a macro Sarah Dos Santos Excel Programming 1 February 10th 05 12:57 PM


All times are GMT +1. The time now is 03:00 AM.

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"