Forum
»
Reps for Excel VBA assistance.
- Results 1 to 26 of 26
-
Page 1 of 1
Thread: Reps for Excel VBA assistance.
01-28-2023, 06:23 PM
-
#1
- Maestro
- отличнo!
-
- Maestro
- отличнo!
- Join Date: Oct 2002
- Location: New Mexico, United States
- Posts: 58,400
- Rep Power: 203698
-
-
Reps for Excel VBA assistance.
So, I just wrote some code in VBA and made a simple search bar for a bunch of data in Excel. How do I save the VBA code WITH the worksheet so that its all one file that can be emailed to someone so they can use the search function?
01-28-2023, 06:29 PM
-
#2
01-28-2023, 06:37 PM
-
#3
01-28-2023, 06:38 PM
-
#4
01-28-2023, 06:40 PM
-
#5
01-28-2023, 06:42 PM
-
#6
- imbored205
- 7 inches
-
- imbored205
- 7 inches
- Join Date: Jul 2011
- Location: San Jose, California, United States
- Age: 35
- Posts: 3,347
- Rep Power: 38731
-
-
ctrl+F
What comes around comes around
I want to believe
01-28-2023, 06:42 PM
-
#7
01-28-2023, 06:45 PM
-
#8
- Maestro
- отличнo!
-
- Maestro
- отличнo!
- Join Date: Oct 2002
- Location: New Mexico, United States
- Posts: 58,400
- Rep Power: 203698
-
-
Originally Posted By Anachron⏩
Activated developer mode, insert>list box, right clicked on it in "design mode" and typed the code in the VBA fieldFuark, they have computers in beaverland?
How did you create the code?
I.e. What was the first step?

How did you create the code?
I.e. What was the first step?

01-28-2023, 06:47 PM
-
#9
- ErnieMccracken
- Join Date: Nov 2013
- Posts: 100,061
- Rep Power: 330290
-
-
Does it work when you save it?
Remember that the default on everyone else's excel is no macros or vba modules permitted.
Remember that the default on everyone else's excel is no macros or vba modules permitted.
01-28-2023, 06:47 PM
-
#10
01-28-2023, 06:52 PM
-
#11
- Maestro
- отличнo!
-
- Maestro
- отличнo!
- Join Date: Oct 2002
- Location: New Mexico, United States
- Posts: 58,400
- Rep Power: 203698
-
-
Originally Posted By ErnieMccracken⏩
well damn...thats a good point...Would they specifically need to have vba modules permitted? or having the Developer tab good enough?Does it work when you save it?
Remember that the default on everyone else's excel is no macros or vba modules permitted.
Remember that the default on everyone else's excel is no macros or vba modules permitted.
01-28-2023, 06:53 PM
-
#12
- BraddlesMcGee
- Registered User
-
- BraddlesMcGee
- Registered User
- Join Date: Dec 2011
- Age: 36
- Posts: 11,239
- Rep Power: 58176
-
-
It has to be in the spreadsheet otherwise it won't work on the spreadsheet. Go to VBA macros, Edit, or whatever it is, through the Excel menu and if you see if it exists as a code module. The execution starts in Main(), mane.
Nocrew crew
SS final perma ban request
https://forum.obnoxiousbrutes.com/showthread.php?t=184614323
01-28-2023, 07:02 PM
-
#13
Remember when I had to do this meaningless type of work lmao.
Thank god those days are long behind me.
Thank god those days are long behind me.
"I am a rational animal who occupies the intermediary position between angel and beast"
"The upper class is afforded their position by the collective burden the underclass must carry for them"
**Summer Walker Crew**
01-28-2023, 07:07 PM
-
#14
01-28-2023, 07:07 PM
-
#15
- Maestro
- отличнo!
-
- Maestro
- отличнo!
- Join Date: Oct 2002
- Location: New Mexico, United States
- Posts: 58,400
- Rep Power: 203698
-
-
Originally Posted By Anachron⏩
damn not sure why thats not working. I right click on my project name, insert>module paste my code, save the file as xlsm, but when I close excel and open it, the module I created doesn't save.Open Developer mode, Insert New Module, then copy and paste your code into the module.
Then save as xlsm.

Then save as xlsm.

01-28-2023, 07:09 PM
-
#16
Originally Posted By Anachron⏩
Nah. Found meaningful workTime to hobomax?


"I am a rational animal who occupies the intermediary position between angel and beast"
"The upper class is afforded their position by the collective burden the underclass must carry for them"
**Summer Walker Crew**
01-28-2023, 07:11 PM
-
#17
- Maestro
- отличнo!
-
- Maestro
- отличнo!
- Join Date: Oct 2002
- Location: New Mexico, United States
- Posts: 58,400
- Rep Power: 203698
-
-
Originally Posted By DomMJr⏩
well, its a ton of info that has almost identical values. I wanted to put something together that allowed them to partially type in text and a selected amount of options would appear.Why would you not use a search bar like this on the spreadsheet?
Use a macro button or something so it is easy to use.
Use a macro button or something so it is easy to use.
Also, I know there's a way to make a search bar with Function Arguments array or whatever, but it take up a lot of "real estate" on the page having to essentially make a duplicate version of the data adjacent
01-28-2023, 07:16 PM
-
#18
01-28-2023, 07:24 PM
-
#19
- Maestro
- отличнo!
-
- Maestro
- отличнo!
- Join Date: Oct 2002
- Location: New Mexico, United States
- Posts: 58,400
- Rep Power: 203698
-
-
Originally Posted By DomMJr⏩
I mean, when the code is all there its simple enough;sounds unintuitive if someone using it for the first time needs to know you type in a box for autofill
I'd preselect groups or something.
I'd preselect groups or something.

01-28-2023, 07:29 PM
-
#20
01-28-2023, 07:33 PM
-
#21
- Maestro
- отличнo!
-
- Maestro
- отличнo!
- Join Date: Oct 2002
- Location: New Mexico, United States
- Posts: 58,400
- Rep Power: 203698
-
-
Originally Posted By Anachron⏩
okay, here's step by step what I've been doing;Dunno brah, it works for me.
Edit : I just tested it, just inserted as Module, saved the project as xlsm, closed Excel, opened project and it's there...

Edit : I just tested it, just inserted as Module, saved the project as xlsm, closed Excel, opened project and it's there...
create the module:

paste the code in the module

select "no" when I ask to save as

then save as the .xlsm
is there anything else I may have missed?
01-28-2023, 08:36 PM
-
#22
Originally Posted By Maestro⏩
I don't get that prompt... It takes me to the save window, and I select macro enabled workbook.okay, here's step by step what I've been doing;
create the module:

paste the code in the module

select "no" when I ask to save as

then save as the .xlsm
is there anything else I may have missed?
create the module:

paste the code in the module

select "no" when I ask to save as

then save as the .xlsm
is there anything else I may have missed?
Is it really saving as xlsm?
What happens when you close and reopen?
01-28-2023, 07:37 PM
-
#23
- CementPizza
- Registered User
-
- CementPizza
- Registered User
- Join Date: Jan 2002
- Posts: 49,096
- Rep Power: 271368
-
-
save the entire directory in a .zip
R.I.P. Hector Bluntz
I am sex yor butt.
Sick Duck Crew.
Stroke crew
Mortal Enema Crew.
Intent to penetrate Crew.
https://www.amazon.com/Best-Sellers-Kitchen-Dining-Potholders/zgbs/kitchen/678537011
01-28-2023, 07:38 PM
-
#24
- BraddlesMcGee
- Registered User
-
- BraddlesMcGee
- Registered User
- Join Date: Dec 2011
- Age: 36
- Posts: 11,239
- Rep Power: 58176
-
-
It's telling you it is a Macro Free Workbook.
You need to enable macros, somewhere.
Edit: But it gives you the option to save with macro. Not so simple.
You need to enable macros, somewhere.
Edit: But it gives you the option to save with macro. Not so simple.
Nocrew crew
SS final perma ban request
https://forum.obnoxiousbrutes.com/showthread.php?t=184614323
01-28-2023, 07:45 PM
-
#25
- Maestro
- отличнo!
-
- Maestro
- отличнo!
- Join Date: Oct 2002
- Location: New Mexico, United States
- Posts: 58,400
- Rep Power: 203698
-
-
Originally Posted By Anachron⏩
HAH!Is it really saving as xlsm?
This statement right here fixed the issue.
So, I already had the document saved as an .xlsx, so even though I was telling it to SAVE AS an .xlsm it kept defaulting to .xlsx because that was the initial extension as I was trying to override what I originally saved.
I don't know why it was doing this, but it was saving as a Chart.xlsm.xlsx, lol
anyway, crisis averted. Thanks for sticking through my Excel illiteracy.
01-28-2023, 08:53 PM
-
#26
Originally Posted By Maestro⏩
Oh wow, I hate it when it does that, LOL.HAH!
This statement right here fixed the issue.
So, I already had the document saved as an .xlsx, so even though I was telling it to SAVE AS an .xlsm it kept defaulting to .xlsx because that was the initial extension as I was trying to override what I originally saved.
I don't know why it was doing this, but it was saving as a Chart.xlsm.xlsx, lol
anyway, crisis averted. Thanks for sticking through my Excel illiteracy.
This statement right here fixed the issue.
So, I already had the document saved as an .xlsx, so even though I was telling it to SAVE AS an .xlsm it kept defaulting to .xlsx because that was the initial extension as I was trying to override what I originally saved.
I don't know why it was doing this, but it was saving as a Chart.xlsm.xlsx, lol
anyway, crisis averted. Thanks for sticking through my Excel illiteracy.

Bookmarks
-
- Digg
-
- del.icio.us
-

- StumbleUpon
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts