![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 4
|
Hey
Im new to using excel and visual basic and I want to create a macro, which will collect information from a sheet in excel paste it to notepad and save it in notepad. I would also like it not to replace the previous time it saved notepad. Thanks if anyone can help |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Kobe, Japan
Posts: 1,420
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 4
|
Hi colo thanks for the help it works but it means I will have to delete the previous document that has been saved. Is there a way to call the notepad document a different name each time the macro is run like 1, 2, 3...or something like that. Thanks for the help
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Kobe, Japan
Posts: 1,420
|
Hi Dennis. May I ask you a question?
The cells where you want to save are always same? If so, I would like to recommend to use "open statement" to you. But the cells what you want to save are different for each times, I would like to recommend to use another way (see following code).
_________________ With regards, Colo [ This Message was edited by: Colo on 2002-04-29 18:17 ] [ This Message was edited by: Colo on 2002-04-29 20:54 ] [ This Message was edited by: Colo on 2002-04-30 19:42 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|