LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How do I write to a closed work book as a "register"

You recorded macro should work ok.

Is there a chance that you didn't allow macros to run when you reopened the
workbook?

If you allowed macros to run, then you'll have to explain what didn't work in
greater detail.

And if you get your recorded macro to work, then you can rename it to Auto_Open
and that will run when your workbook opens (if you allow macros to run).

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

Kiwifella wrote:

Hi there all you Gurus out there!
I have created a macro to create a unique invoice number in a work book, but
for my specific purpose, each time I create a new invoice number i want to
record this in a rolling register in a separate spreadsheet & workbook.
If i have another spreadsheet open I found I can do this, However not when
the 2nd (register/record) work book is closed. I tried recording a macro
whcih included opening the destination work book, but this would not run when
I trialled it.
Can I do this?
Alternatively, can i program excel in such a way that every time I open
workbook A, workbook B also automatically opens so that I can write to work
book B as a register/record?
Huge thanks for your help, if anyone does know, I am a begininer so please
be very specific. I don't know how to "write macro codes" as such, I have
just been recording macros the easy way.
Thanks


--

Dave Peterson
 
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
how to write formula for countif (range,"<2" &"3") Vinod Tripathi Excel Discussion (Misc queries) 1 May 1st 09 07:27 AM
How do I write an excel formula with a text answer ("yes" or "no") pat Excel Discussion (Misc queries) 1 September 9th 08 03:41 PM
Excel Work"Book" Tabs anyone? swam.utty Excel Discussion (Misc queries) 3 December 1st 07 09:08 AM
Resolve message "No more fonts may be applied to this work book" dwighhtmv700 Excel Discussion (Misc queries) 1 May 11th 06 01:45 AM
conditional formula to show "open" or "closed" SBS Excel Worksheet Functions 6 January 28th 06 01:48 AM


All times are GMT +1. The time now is 01:22 AM.

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"