Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Automatically replace cell value with next in list...

Jim,

Thanks so much for helping with that. I applied it, made a few changes
and it works beautifully.

Again, thanks!'

Jim Thomlinson wrote:
It is doable but it requires a macro soemthing like this...

sub PrintStores
dim rng as range
dim rngStores as range

with Sheets("sheet1") 'sheet with list of store numbers to print
'Traverses cells A1 through A??
set rngStores = .Range(.range("A1"), .cells(rows.count, "A").end(xlup))
end with

with Sheets("sheet2") 'sheet you want printed
for each rng in rngStores
.range("B1").Value = rng.value 'store number cell address
.printpreview
'.printout 'remove the apostrophe when this is working
next rng
end with
end sub
--
HTH...

Jim Thomlinson


"ChuckF" wrote:

I have one worksheet which has a store list. It contains store
numbers, address, city, state and so on and so on.

On a separate worksheet I have a form that needs to be filled out by
each store. On this tab I have several vlookup's to pull the
information from the other.

I would love if I could hit a button, and have the sheet replace the
store number on the second sheet with the next store number, print, and
then move to the next store number, print...so on and so on.

Does anyone know an easier way to do this, other then me manually
entering the store numbers and hitting print?

Any help would be appreciated.

Thanks!



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
Color cell validation? jjh Excel Discussion (Misc queries) 4 July 9th 06 02:04 AM
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
How do I automatically fill a cell based on another cell in Excel SouthCarolina Excel Discussion (Misc queries) 3 January 13th 06 12:52 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


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