• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

Excel VB question

Folks I need some help here.  I have created a script that is intended to sort data, put data column headers in and add the auto filter.  I have to install this on managers machines so my intent is to have each manager save the VB script as an add in file.  That way each time they open up the source data to be manipulated all they would need to do is hit the control key, cntrl+J, to run the macro.

Here are the issues I am running into:
1.  I am gettin a 400 error when I run the script on another machine,  I don't get this error when I run it on my machine.
2. The shortcut key doesn't work even after going into the macro options and making sure that the short cut key is set there.

I have included my data source file and my script code.  Can someone please help me figure this out.
PAR-Test1.xlsm
DlyReleaseActivity-20140903.csv
0
Rrave26
Asked:
Rrave26
  • 2
1 Solution
 
ProfessorJimJamCommented:
Hi,

you had put your recorded code into sheet object module which is wrong.
now try it with the file i have attached.  Control K is the shortkey to run the macro.
PAR-Test1.xlsm
0
 
Rrave26Author Commented:
Thanks for your help, I am trying this out right now.  Can I ask why it was wrong to record the code into the sheet module?
0
 
ProfessorJimJamCommented:
sheet vba object page is used for other purposes , like codes triggered by events called event handlers.

module is for the normal functions and procedures to place
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now