Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Very grateful for any help: I am a novice at this.
I have a spreadsheet with multiple sheets, already named (lets say Mon, Tues, Wed). A macro visits other Excel files, retrieves data by copying. I want to allow the user to select the paste destination (sheet name only, cells A1 to end). The cells are all in the same format etc, all I need is to let the user specify - either by typing, or by selecting from a list, which sheet (Mon,Tue,Wed) to paste to, and then let the macro continue to paste and do other things. I have tried : Range("A1:L6").Select Selection.copy Application.InputBox( _ "use mouse to select worksheet", Type:=8) ActiveSheet.Paste End Sub and I have tried SelectAnswer = InputBox("Tell me a sheet name.") Worksheets(Answer).Activate Range("D4").Value = "Done it!" and I have tried to create a drop down list. All fail! Some error checking, or a drop down selection, would be helpful to limit user error but not essential. PS Working in Excel2007 Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sort by name when user selects name on another worksheet | Excel Discussion (Misc queries) | |||
Prompt the user for an existing sheet | Excel Programming | |||
Run macro when user selects a different sheet | Excel Programming | |||
copying specific rows to an existing sheet, based on user paramete | Excel Programming | |||
User selects a range | Excel Programming |