This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
Losing reference to wb/sheet after opening new wb?
Post Body
First, i save reference of active workbook, which is a form I made, and the active (main)sheet. Ex: Dim wb_form_Sheet As Worksheet Set wb_form_Sheet = ActiveSheet
Then get another wb to fetch its data Workbooks.Open s_filePath
After this, if I try to MsgBox wb_form_Sheet.Name, it doesn't do anything, which means I lost reference to my sheet after opening another wb.
How do I keep reference to old wb/sheet after opening a wb on the side?
Author
Account Strength
70%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
617
Link Karma
112
Comment Karma
427
Profile updated: 4 days ago
Posts updated: 9 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/vba/comment...