Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default InputBox VBA all worksheet, specific cell(s)

I've created an inputbox to gather user info. that I'd like to apply to all
my worksheets in specificied cells. (e.g., All worksheets - cells A1, U5,
W10). I know how to do this individually (e.g,:
Range("'Sheet1'!, A1, U5, W10") = Name
Range("'Sheet2'!, A1, U5, W10") = Name
This continues to Sheet31
ETC.
Was wondering if there was a quicker method so I don't have to copy, paste
and then make changes?

Any help is appreciated

Mike





but was wondering if there is a shorter and quicker method.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default InputBox VBA all worksheet, specific cell(s)

this should do what you want

For Each sh In ActiveWorkbook.Sheets
sh.Range("A1, U5, W10") = Name
Next sh
--
jb


"Preschool Mike" wrote:

I've created an inputbox to gather user info. that I'd like to apply to all
my worksheets in specificied cells. (e.g., All worksheets - cells A1, U5,
W10). I know how to do this individually (e.g,:
Range("'Sheet1'!, A1, U5, W10") = Name
Range("'Sheet2'!, A1, U5, W10") = Name
This continues to Sheet31
ETC.
Was wondering if there was a quicker method so I don't have to copy, paste
and then make changes?

Any help is appreciated

Mike





but was wondering if there is a shorter and quicker method.

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
InputBox VBA all worksheet, specific cell(s) Patrick Molloy Excel Programming 0 June 15th 09 07:16 PM
Deleting specific rows with a specific criteria using inputbox Greg Excel Programming 2 April 10th 08 04:31 PM
If in specific cell in any worksheet but worksheet one add to spec LiveUser Excel Worksheet Functions 3 January 24th 08 11:26 PM
Help for vba to control the PivotItem in specific Field in Pivot Table by choose in inputbox Crystal Ng Excel Programming 0 January 11th 08 03:07 AM
Navigate to specific cell on specific worksheet Bryan Excel Programming 2 April 13th 06 04:33 PM


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