Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Salt4
 
Posts: n/a
Default Sequential names on Sequential pages

I'm trying to name the cells on sequential pages with sequential names:

Page "1", cell "A5" is named "house1"
Page "2", cell "A5" is named "house2"
Page "3", cell "A5" is named "house3"
.. . . and so on . . . .

Is there a way I can do this quickly with out going to each cell on each
page and naming them individually?
  #2   Report Post  
tjtjjtjt
 
Posts: n/a
Default

Someone may have a simpler answer, but this short macro seems to do it:

Sub InstTxt()

Dim ShtNum As Byte
Dim Cntr As Byte
ShtNum = Worksheets.Count

For Cntr = 1 To ShtNum
Worksheets(Cntr).Select
Range("A5").Value = "house" & Cntr
Next Cntr

End Sub

You can put it into your file by pressing Alt+F11.
Then, choose Insert | Module
Copy and Paste

tj

"Salt4" wrote:

I'm trying to name the cells on sequential pages with sequential names:

Page "1", cell "A5" is named "house1"
Page "2", cell "A5" is named "house2"
Page "3", cell "A5" is named "house3"
. . . and so on . . . .

Is there a way I can do this quickly with out going to each cell on each
page and naming them individually?

  #3   Report Post  
tjtjjtjt
 
Posts: n/a
Default

Forgot to mention, you may have to adjsut your Macro Security to Medium to
run this macro in the future.
Tools | Macro, Security
tj

"Salt4" wrote:

I'm trying to name the cells on sequential pages with sequential names:

Page "1", cell "A5" is named "house1"
Page "2", cell "A5" is named "house2"
Page "3", cell "A5" is named "house3"
. . . and so on . . . .

Is there a way I can do this quickly with out going to each cell on each
page and naming them individually?

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
PRINTING PAGES Meg Setting up and Configuration of Excel 0 January 13th 05 07:31 PM
How do I remove pages in Excel? Carrmela Excel Discussion (Misc queries) 1 December 9th 04 08:13 PM
How can I find the common names in two columns of names? hako Excel Discussion (Misc queries) 2 December 8th 04 01:59 AM
How do I delete pages? Sara Excel Discussion (Misc queries) 5 December 8th 04 01:25 AM
Limiting the # of pages for Repeat Column Labels LarryF Excel Discussion (Misc queries) 1 November 27th 04 12:21 AM


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